diff options
author | David Howells <dhowells@redhat.com> | 2008-04-29 21:52:51 +0200 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-04-30 00:23:51 +0200 |
commit | e52c1764f18a62776a0f2bc6752fb76b6e345827 (patch) | |
tree | b60a62585dfe511d9216cdd4a207fd07df1b2f99 /security/smack/smack_lsm.c | |
parent | Improve queue_is_locked() (diff) | |
download | linux-e52c1764f18a62776a0f2bc6752fb76b6e345827.tar.xz linux-e52c1764f18a62776a0f2bc6752fb76b6e345827.zip |
Security: Make secctx_to_secid() take const secdata
Make secctx_to_secid() take constant secdata.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to '')
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 5d2ec5650e61..92baee53a7dc 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -2406,7 +2406,7 @@ static int smack_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) * * Exists for audit and networking code. */ -static int smack_secctx_to_secid(char *secdata, u32 seclen, u32 *secid) +static int smack_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) { *secid = smack_to_secid(secdata); return 0; |