Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ae7b2bb7
Commit
ae7b2bb7
authored
Nov 25, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LSM: Move the definition of capable() into sched.h if CONFIG_SECURITY is set to help
make the #include nightmare more managable.
parent
3b7ce416
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
include/linux/sched.h
include/linux/sched.h
+4
-2
include/linux/security.h
include/linux/security.h
+0
-1
No files found.
include/linux/sched.h
View file @
ae7b2bb7
...
...
@@ -540,8 +540,10 @@ static inline int sas_ss_flags(unsigned long sp)
}
#ifndef CONFIG_SECURITY
/* capable prototype and code are in security.[hc] if CONFIG_SECURITY */
#ifdef CONFIG_SECURITY
/* code is in security.c */
extern
int
capable
(
int
cap
);
#else
static
inline
int
capable
(
int
cap
)
{
if
(
cap_raised
(
current
->
cap_effective
,
cap
))
{
...
...
include/linux/security.h
View file @
ae7b2bb7
...
...
@@ -1371,7 +1371,6 @@ extern int register_security (struct security_operations *ops);
extern
int
unregister_security
(
struct
security_operations
*
ops
);
extern
int
mod_reg_security
(
const
char
*
name
,
struct
security_operations
*
ops
);
extern
int
mod_unreg_security
(
const
char
*
name
,
struct
security_operations
*
ops
);
extern
int
capable
(
int
cap
);
#else
/* CONFIG_SECURITY */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment