2f5eb093a4
work present in FreeBSD 7.0 to refine the kernel privilege model: - Introduce support for jail as a testing variable, in order to confirm that privileges are properly restricted in the jail environment. - Restructure overall testing approach so that privilege and jail conditions are set in the testing infrastructure before tests are invoked, and done so in a custom-created process to isolate the impact of tests from each other in a more consistent way. - Tests now provide setup and cleanup hooks that occur before and after the test runs. - New privilege tests are now present for several audit privileges, several credential management privileges, dmesg buffer reading privilege, and netinet raw socket creation. - Other existing tests are restructured and generally improved as a result of better framework structure and jail as a variable. For exampe, we now test that certain sysctls are writable only outside jail, while others are writable within jail. On a similar note, privileges relating to setting UFS file flags are now better exercised, as with the right to chmod and utimes files. Approved by: re (bmah) Obtained from: TrustedBSD Project
49 lines
939 B
Makefile
49 lines
939 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PROG= priv
|
|
SRCS= main.c \
|
|
priv_acct.c \
|
|
priv_adjtime.c \
|
|
priv_audit_control.c \
|
|
priv_audit_getaudit.c \
|
|
priv_audit_setaudit.c \
|
|
priv_audit_submit.c \
|
|
priv_clock_settime.c \
|
|
priv_cred.c \
|
|
priv_io.c \
|
|
priv_kenv_set.c \
|
|
priv_kenv_unset.c \
|
|
priv_msgbuf.c \
|
|
priv_netinet_raw.c \
|
|
priv_proc_setlogin.c \
|
|
priv_proc_setrlimit.c \
|
|
priv_sched_rtprio.c \
|
|
priv_sched_setpriority.c \
|
|
priv_settimeofday.c \
|
|
priv_sysctl_write.c \
|
|
priv_vfs_chflags.c \
|
|
priv_vfs_chmod.c \
|
|
priv_vfs_chown.c \
|
|
priv_vfs_chroot.c \
|
|
priv_vfs_clearsugid.c \
|
|
priv_vfs_extattr_system.c \
|
|
priv_vfs_fhopen.c \
|
|
priv_vfs_fhstat.c \
|
|
priv_vfs_fhstatfs.c \
|
|
priv_vfs_generation.c \
|
|
priv_vfs_getfh.c \
|
|
priv_vfs_read_write.c \
|
|
priv_vfs_setgid.c \
|
|
priv_vfs_stickyfile.c \
|
|
priv_vfs_utimes.c \
|
|
priv_vm_madv_protect.c \
|
|
priv_vm_mlock.c \
|
|
priv_vm_munlock.c
|
|
|
|
NO_MAN=
|
|
WARNS= 3
|
|
|
|
.include <bsd.prog.mk>
|