From 496b1356ffbfd16fcaefb3e6e21904cd576650f2 Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 30 Aug 2000 04:35:32 +0000 Subject: o Disable flagging of ASU in suser_xxx() authorization check. For the time being, the ASU accounting flag will no longer be available, but may be reinstituted in the future once authorization have been redone. As it is, the kernel went through contortions in access control to avoid calling suser, which always set the flag. This will also allow suser to accept const struct *{cred, proc} arguments. Reviewed by: bde, green, phk, freebsd-security, others Approved by: bde Obtained from: TrustedBSD Project --- sys/kern/kern_prot.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 0a8ae2c..33007e7 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -968,8 +968,6 @@ suser_xxx(cred, proc, flag) return (EPERM); if (proc && proc->p_prison && !(flag & PRISON_ROOT)) return (EPERM); - if (proc) - proc->p_acflag |= ASU; return (0); } -- cgit v1.1