Re: Process accounting question

Theodore Y. Ts'o (tytso@MIT.EDU)
Wed, 17 Sep 1997 12:22:50 -0400


Date: Tue, 16 Sep 1997 22:55:37 +0100 (BST)
From: Chris Evans <chris@ferret.lmh.ox.ac.uk>

BSD process accounting has aq flag which notes whether a process has used
super user privs or not. Should it count if a process uses super user
privs to override file access permissions? Currently we don't take this
into account.

As long as everyone was careful to observe the convention that the
suser() test should be called at the *end* of logical OR or AND
statement, i.e.:

if ((current->euid != uid) && !suser())
return -EPERM;

.... then it would be a very simple matter of changing the suser()
command to set the "superuser privs used flag".

- Ted