Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man5 Explain the state of ASU and ACOMPAT.



details:   https://anonhg.NetBSD.org/src/rev/ebb02447ab1f
branches:  trunk
changeset: 1026268:ebb02447ab1f
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 15 17:41:20 2021 +0000

description:
Explain the state of ASU and ACOMPAT.

diffstat:

 share/man/man5/acct.5 |  34 +++++++++++++++++++++++++++-------
 1 files changed, 27 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 0cbcfb28ba3b -r ebb02447ab1f share/man/man5/acct.5
--- a/share/man/man5/acct.5     Mon Nov 15 16:00:25 2021 +0000
+++ b/share/man/man5/acct.5     Mon Nov 15 17:41:20 2021 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: acct.5,v 1.9 2006/12/22 08:00:20 ad Exp $
+.\"    $NetBSD: acct.5,v 1.10 2021/11/15 17:41:20 christos Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)acct.5     8.1 (Berkeley) 6/5/93
 .\"
-.Dd December 22, 2006
+.Dd November 15, 2021
 .Dt ACCT 5
 .Os
 .Sh NAME
@@ -92,16 +92,36 @@
 and its status is saved by setting one of more of the following flags in
 .Fa ac_flag :
 .Dv AFORK ,
-.Dv ACORE
+.Dv ACORE ,
 and
-.Dv ASIG .
+.Dv AXSIG .
 .Pp
 The
 .Dv ASU
-and
+flag is not recorded anymore because with the switch to
+.Xr kauth 9 ,
+the superuser model is optional and passing the affected process to every
+authorization call in order to record
+.Dv ASU
+in
+.Fa p_acflag ,
+would require many source changes and would not reflect reality because
+the authorization decision might not have been done based on the 
+.Xr secmodel_suser 9 
+model.
+.Pp
+The
 .Dv ACOMPAT
-flags are no longer recorded by the system, but are retained for source
-compatibility.
+flag was never recorded in
+.Nx ;
+we could consider setting when the a process is running under emulation,
+but this is not currently done.
+.Pp
+Both the
+.Dv ASU
+and the
+.Dv ACOMPAT
+flags are retained for source compatibility.
 .Sh SEE ALSO
 .Xr lastcomm 1 ,
 .Xr acct 2 ,



Home | Main Index | Thread Index | Old Index