aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Paris2012-01-03 11:25:15 -0600
committerEric Paris2012-01-05 17:52:55 -0600
commit2920a8409de5a51575d03deca07e5bb2be6fc98d (patch)
tree1f16eba518068e7096b6ff200c09d3d31e285586 /security/security.c
parentc7eba4a97563fd8b431787f7ad623444f2da80c6 (diff)
downloadkernel-common-2920a8409de5a51575d03deca07e5bb2be6fc98d.tar.gz
kernel-common-2920a8409de5a51575d03deca07e5bb2be6fc98d.tar.xz
kernel-common-2920a8409de5a51575d03deca07e5bb2be6fc98d.zip
capabilities: remove all _real_ interfaces
The name security_real_capable and security_real_capable_noaudit just don't make much sense to me. Convert them to use security_capable and security_capable_noaudit. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Serge E. Hallyn <serge.hallyn@canonical.com>
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/security/security.c b/security/security.c
index b7edaae77d1..8900c5c4db5 100644
--- a/security/security.c
+++ b/security/security.c
@@ -166,30 +166,6 @@ int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns,
166 return security_ops->capable(cred, ns, cap, SECURITY_CAP_NOAUDIT); 166 return security_ops->capable(cred, ns, cap, SECURITY_CAP_NOAUDIT);
167} 167}
168 168
169int security_real_capable(struct task_struct *tsk, struct user_namespace *ns,
170 int cap)
171{
172 const struct cred *cred;
173 int ret;
174
175 cred = get_task_cred(tsk);
176 ret = security_ops->capable(cred, ns, cap, SECURITY_CAP_AUDIT);
177 put_cred(cred);
178 return ret;
179}
180
181int security_real_capable_noaudit(struct task_struct *tsk,
182 struct user_namespace *ns, int cap)
183{
184 const struct cred *cred;
185 int ret;
186
187 cred = get_task_cred(tsk);
188 ret = security_ops->capable(cred, ns, cap, SECURITY_CAP_NOAUDIT);
189 put_cred(cred);
190 return ret;
191}
192
193int security_quotactl(int cmds, int type, int id, struct super_block *sb) 169int security_quotactl(int cmds, int type, int id, struct super_block *sb)
194{ 170{
195 return security_ops->quotactl(cmds, type, id, sb); 171 return security_ops->quotactl(cmds, type, id, sb);