diff options
| author | David Howells <[email protected]> | 2008-04-29 19:52:51 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-29 20:22:56 +0000 |
| commit | 7bf570dc8dcf76df2a9f583bef2da96d4289ed0d (patch) | |
| tree | b60a62585dfe511d9216cdd4a207fd07df1b2f99 /security/selinux/hooks.c | |
| parent | Improve queue_is_locked() (diff) | |
| download | kernel-7bf570dc8dcf76df2a9f583bef2da96d4289ed0d.tar.gz kernel-7bf570dc8dcf76df2a9f583bef2da96d4289ed0d.zip | |
Security: Make secctx_to_secid() take const secdata
Make secctx_to_secid() take constant secdata.
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 4e4de98941ae..85a220465a8f 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -5238,7 +5238,7 @@ static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) return security_sid_to_context(secid, secdata, seclen); } -static int selinux_secctx_to_secid(char *secdata, u32 seclen, u32 *secid) +static int selinux_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) { return security_context_to_sid(secdata, seclen, secid); } |
