Module Name:    src
Committed By:   christos
Date:           Mon Nov 15 17:41:20 UTC 2021

Modified Files:
        src/share/man/man5: acct.5

Log Message:
Explain the state of ASU and ACOMPAT.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/man/man5/acct.5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man5/acct.5
diff -u src/share/man/man5/acct.5:1.9 src/share/man/man5/acct.5:1.10
--- src/share/man/man5/acct.5:1.9	Fri Dec 22 03:00:20 2006
+++ src/share/man/man5/acct.5	Mon Nov 15 12:41:20 2021
@@ -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 @@ is saved in the field
 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
+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 no longer recorded by the system, but are retained for source
-compatibility.
+flags are retained for source compatibility.
 .Sh SEE ALSO
 .Xr lastcomm 1 ,
 .Xr acct 2 ,

Reply via email to