mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Security: Make secctx_to_secid() take const secdata
Make secctx_to_secid() take constant secdata. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7663c1e279
commit
7bf570dc8d
7 changed files with 10 additions and 10 deletions
|
@ -1481,7 +1481,7 @@ struct security_operations {
|
|||
int (*getprocattr) (struct task_struct *p, char *name, char **value);
|
||||
int (*setprocattr) (struct task_struct *p, char *name, void *value, size_t size);
|
||||
int (*secid_to_secctx) (u32 secid, char **secdata, u32 *seclen);
|
||||
int (*secctx_to_secid) (char *secdata, u32 seclen, u32 *secid);
|
||||
int (*secctx_to_secid) (const char *secdata, u32 seclen, u32 *secid);
|
||||
void (*release_secctx) (char *secdata, u32 seclen);
|
||||
|
||||
#ifdef CONFIG_SECURITY_NETWORK
|
||||
|
@ -1730,7 +1730,7 @@ int security_setprocattr(struct task_struct *p, char *name, void *value, size_t
|
|||
int security_netlink_send(struct sock *sk, struct sk_buff *skb);
|
||||
int security_netlink_recv(struct sk_buff *skb, int cap);
|
||||
int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
|
||||
int security_secctx_to_secid(char *secdata, u32 seclen, u32 *secid);
|
||||
int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid);
|
||||
void security_release_secctx(char *secdata, u32 seclen);
|
||||
|
||||
#else /* CONFIG_SECURITY */
|
||||
|
@ -2449,7 +2449,7 @@ static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *secle
|
|||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int security_secctx_to_secid(char *secdata,
|
||||
static inline int security_secctx_to_secid(const char *secdata,
|
||||
u32 seclen,
|
||||
u32 *secid)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue