mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Security: Make secctx_to_secid() take const secdata
Make secctx_to_secid() take constant secdata. Signed-off-by: David Howells <[email protected]> Acked-by: Casey Schaufler <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
7663c1e279
commit
e52c1764f1
7 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue