]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/capability.c
cpqarray: fix info leak in ida_locked_ioctl()
[karo-tx-linux.git] / kernel / capability.c
index f6c2ce5701e1c3c723d03e3d917c62f584c3a074..4e66bf9275b03edf3c62e0e350afc5248f2b00b8 100644 (file)
@@ -432,18 +432,6 @@ bool capable(int cap)
 }
 EXPORT_SYMBOL(capable);
 
-/**
- * nsown_capable - Check superior capability to one's own user_ns
- * @cap: The capability in question
- *
- * Return true if the current task has the given superior capability
- * targeted at its own user namespace.
- */
-bool nsown_capable(int cap)
-{
-       return ns_capable(current_user_ns(), cap);
-}
-
 /**
  * inode_capable - Check superior capability over inode
  * @inode: The inode in question
@@ -464,3 +452,4 @@ bool inode_capable(const struct inode *inode, int cap)
 
        return ns_capable(ns, cap) && kuid_has_mapping(ns, inode->i_uid);
 }
+EXPORT_SYMBOL(inode_capable);