From owner-p4-projects Mon Jan 13 17: 7:44 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AB9DA37B405; Mon, 13 Jan 2003 17:07:36 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC2837B401 for ; Mon, 13 Jan 2003 17:07:36 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAC3243F18 for ; Mon, 13 Jan 2003 17:07:35 -0800 (PST) (envelope-from chris@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0E17Zfh025916 for ; Mon, 13 Jan 2003 17:07:35 -0800 (PST) (envelope-from chris@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0E17YYY025913 for perforce@freebsd.org; Mon, 13 Jan 2003 17:07:34 -0800 (PST) Date: Mon, 13 Jan 2003 17:07:34 -0800 (PST) Message-Id: <200301140107.h0E17YYY025913@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to chris@freebsd.org using -f From: Chris Costello Subject: PERFORCE change 23708 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=23708 Change 23708 by chris@chris_holly on 2003/01/13 17:07:30 Finish the system "check" entry points. Affected files ... .. //depot/projects/trustedbsd/doc/en_US.ISO8859-1/books/developers-handbook/mac/chapter.sgml#20 edit Differences ... ==== //depot/projects/trustedbsd/doc/en_US.ISO8859-1/books/developers-handbook/mac/chapter.sgml#20 (text+ko) ==== @@ -5202,6 +5202,264 @@ EPERM for lack of privilege, or ESRCH to hide visibility. + + + <function>&mac.mpo;_check_system_acct</function> + + + + int + &mac.mpo;_check_system_acct + + struct ucred + *ucred + struct vnode + *vp + struct label + *vlabel + + + + + + &mac.thead; + + + + ucred + Subject credential + + + + vp + Accounting file; &man.acct.5; + + + + vlabel + Label associated with + vp + + + + + + Determine whether the subject should be allowed to + enable accounting, based on its label and the label of the + accounting log file. + + + + <function>&mac.mpo;_check_system_nfsd</function> + + + + int + &mac.mpo;_check_system_nfsd + + struct ucred + *cred + + + + + + &mac.thead; + + + + cred + Subject credential + + + + + + Determine whether the subject should be allowed to call + &man.nfssvc.2;. + + + + <function>&mac.mpo;_check_system_reboot</function> + + + + int + &mac.mpo;_check_system_reboot + + struct ucred + *cred + int howto + + + + + + &mac.thead; + + + + cred + Subject credential + + + + howto + howto parameter from + &man.reboot.2; + + + + + + Determine whether the subject should be allowed to + reboot the system in the specified manner. + + + + <function>&mac.mpo;_check_system_settime</function> + + + + int + &mac.mpo;_check_system_settime + + struct ucred + *cred + + + + + + &mac.thead; + + + + cred + Subject credential + + + + + + Determine whether the user should be allowed to set the + system clock. + + + + <function>&mac.mpo;_check_system_swapon</function> + + + + int + &mac.mpo;_check_system_swapon + + struct ucred + *cred + struct vnode + *vp + struct label + *vlabel + + + + + + &mac.thead; + + + + cred + Subject credential + + + + vp + Swap device + + + + vlabel + Label associated with + vp + + + + + + Determine whether the subject should be allowed to add + vp as a swap device. + + + + <function>&mac.mpo;_check_system_sysctl</function> + + + + int + &mac.mpo;_check_system_sysctl + + struct ucred + *cred + int *name + u_int *namelen + void *old + size_t + *oldlenp + int inkernel + void *new + size_t newlen + + + + + + &mac.thead; + + + + cred + Subject credential + + + + name + See &man.sysctl.3; + + + + namelen + + + + old + + + + oldlenp + + + + inkernel + Boolean; 1 if called from + kernel + + + + new + See &man.sysctl.3; + + + + newlen + + + + + + Determine whether the subject should be allowed to make + the specified &man.sysctl.3; transaction. + To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message