PERFORCE change 109988 for review
Todd Miller
millert at FreeBSD.org
Tue Nov 14 20:52:46 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109988
Change 109988 by millert at millert_g5tower on 2006/11/14 20:39:34
Fix logic reversal. mac_[gs]et_file should follow symlinks,
mac_[gs]et_link should not.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/security/mac_base.c#21 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/security/mac_base.c#21 (text+ko) ====
@@ -1644,7 +1644,7 @@
register_t *ret __unused)
{
- return (mac_get_filelink(p, uap->mac_p, uap->path_p, 0));
+ return (mac_get_filelink(p, uap->mac_p, uap->path_p, 1));
}
int
@@ -1652,7 +1652,7 @@
register_t *ret __unused)
{
- return (mac_get_filelink(p, uap->mac_p, uap->path_p, 1));
+ return (mac_get_filelink(p, uap->mac_p, uap->path_p, 0));
}
int
@@ -1810,7 +1810,7 @@
register_t *ret __unused)
{
- return (mac_set_filelink(p, uap->mac_p, uap->path_p, 0));
+ return (mac_set_filelink(p, uap->mac_p, uap->path_p, 1));
}
int
@@ -1818,7 +1818,7 @@
register_t *ret __unused)
{
- return (mac_set_filelink(p, uap->mac_p, uap->path_p, 1));
+ return (mac_set_filelink(p, uap->mac_p, uap->path_p, 0));
}
/*
More information about the trustedbsd-cvs
mailing list