|
@@ -1481,7 +1481,7 @@ struct security_operations {
|
|
int (*getprocattr) (struct task_struct *p, char *name, char **value);
|
|
int (*getprocattr) (struct task_struct *p, char *name, char **value);
|
|
int (*setprocattr) (struct task_struct *p, char *name, void *value, size_t size);
|
|
int (*setprocattr) (struct task_struct *p, char *name, void *value, size_t size);
|
|
int (*secid_to_secctx) (u32 secid, char **secdata, u32 *seclen);
|
|
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);
|
|
void (*release_secctx) (char *secdata, u32 seclen);
|
|
|
|
|
|
#ifdef CONFIG_SECURITY_NETWORK
|
|
#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_send(struct sock *sk, struct sk_buff *skb);
|
|
int security_netlink_recv(struct sk_buff *skb, int cap);
|
|
int security_netlink_recv(struct sk_buff *skb, int cap);
|
|
int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
|
|
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);
|
|
void security_release_secctx(char *secdata, u32 seclen);
|
|
|
|
|
|
#else /* CONFIG_SECURITY */
|
|
#else /* CONFIG_SECURITY */
|
|
@@ -2449,7 +2449,7 @@ static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *secle
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline int security_secctx_to_secid(char *secdata,
|
|
|
|
|
|
+static inline int security_secctx_to_secid(const char *secdata,
|
|
u32 seclen,
|
|
u32 seclen,
|
|
u32 *secid)
|
|
u32 *secid)
|
|
{
|
|
{
|