[libselinux] Add selinux_check_access function. Needed for passwd, chfn, chsh
Daniel J Walsh
dwalsh at fedoraproject.org
Thu Oct 20 20:50:44 UTC 2011
commit 9328ed5d5964902ae41a5e3ac26e8b78c21d1357
Author: Dan Walsh <dwalsh at redhat.com>
Date: Thu Oct 20 16:50:40 2011 -0400
Add selinux_check_access function. Needed for passwd, chfn, chsh
libselinux-rhat.patch | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libselinux-rhat.patch b/libselinux-rhat.patch
index 43559e6..78b225d 100644
--- a/libselinux-rhat.patch
+++ b/libselinux-rhat.patch
@@ -130,7 +130,7 @@ index b245364..7c47222 100644
rc = vfprintf(stderr, fmt, ap);
va_end(ap);
diff --git a/libselinux/src/checkAccess.c b/libselinux/src/checkAccess.c
-index c1982c7..37ccc15 100644
+index c1982c7..59c8abb 100644
--- a/libselinux/src/checkAccess.c
+++ b/libselinux/src/checkAccess.c
@@ -4,8 +4,40 @@
@@ -168,7 +168,7 @@ index c1982c7..37ccc15 100644
+
+ if ((av = string_to_av_perm(sclass, perm)) == 0) return status;
+
-+ return (avc_has_perm (scon_id, tcon_id, sclass, av, NULL, aux);
++ return avc_has_perm (scon_id, tcon_id, sclass, av, NULL, aux);
+}
+
int selinux_check_passwd_access(access_vector_t requested)
More information about the scm-commits
mailing list