diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2009-05-29 10:52:37 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2009-05-29 10:52:37 +0000 |
commit | 1a109c1cb0ef3176d2d32e11d8a51d48248bd2e5 (patch) | |
tree | bcd8f26df00704f44c24b12794f3b744baf80489 /sys/security/mac/mac_framework.c | |
parent | e257fff4834002a504ac676257d4fc63c95eee44 (diff) | |
download | src-1a109c1cb0ef3176d2d32e11d8a51d48248bd2e5.tar.gz src-1a109c1cb0ef3176d2d32e11d8a51d48248bd2e5.zip |
Make the rmlock(9) interface a bit more like the rwlock(9) interface:
- Add rm_init_flags() and accept extended options only for that variation.
- Add a flags space specifically for rm_init_flags(), rather than borrowing
the lock_init() flag space.
- Define flag RM_RECURSE to use instead of LO_RECURSABLE.
- Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS
checking; this wasn't possible previously as rm_init() always passed
LO_WITNESS when initializing an rmlock's struct lock.
- Add RM_SYSINIT_FLAGS().
- Rename embedded mutex in rmlocks to make it more obvious what it is.
- Update consumers.
- Update man page.
Notes
Notes:
svn path=/head/; revision=193030
Diffstat (limited to 'sys/security/mac/mac_framework.c')
-rw-r--r-- | sys/security/mac/mac_framework.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 6a36b6bbdd02..6f675cb4cae8 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -289,7 +289,7 @@ mac_init(void) mac_labelzone_init(); #ifndef MAC_STATIC - rm_init(&mac_policy_rm, "mac_policy_rm", 0); + rm_init(&mac_policy_rm, "mac_policy_rm"); sx_init(&mac_policy_sx, "mac_policy_sx"); #endif } |