diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-03-28 12:09:33 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-03-28 12:09:33 -0700 |
| commit | 78fb88eca684ed6f09f01a232c925b6da75d8131 (patch) | |
| tree | c08af208456f79b57ff3c00762169db97526134e /kernel | |
| parent | a2d4f473df1117e437fee125fa7e9420e19207ec (diff) | |
| parent | 4ae89b1fe7c2e37a8f2ea39765e4c40c9d42a101 (diff) | |
Merge tag 'caps-pr-20250327' of git://git.kernel.org/pub/scm/linux/kernel/git/sergeh/linux
Pull capabilities update from Serge Hallyn:
"This contains just one patch that removes a helper function whose last
user (smack) stopped using it in 2018"
* tag 'caps-pr-20250327' of git://git.kernel.org/pub/scm/linux/kernel/git/sergeh/linux:
capability: Remove unused has_capability
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/capability.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/capability.c b/kernel/capability.c index e089d2628c29..829f49ae07b9 100644 --- a/kernel/capability.c +++ b/kernel/capability.c @@ -286,22 +286,6 @@ bool has_ns_capability(struct task_struct *t, } /** - * has_capability - Does a task have a capability in init_user_ns - * @t: The task in question - * @cap: The capability to be tested for - * - * Return true if the specified task has the given superior capability - * currently in effect to the initial user namespace, false if not. - * - * Note that this does not set PF_SUPERPRIV on the task. - */ -bool has_capability(struct task_struct *t, int cap) -{ - return has_ns_capability(t, &init_user_ns, cap); -} -EXPORT_SYMBOL(has_capability); - -/** * has_ns_capability_noaudit - Does a task have a capability (unaudited) * in a specific user ns. * @t: The task in question |
