提交 9a673e56 编写于 作者: A Adrian Bunk 提交者: David S. Miller

[SELINUX]: security/selinux/hooks.c: Make 4 functions static.

This patch makes four needlessly global functions static.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Acked-by: NJames Morris <jmorris@namei.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 97a4f3e7
...@@ -3598,7 +3598,7 @@ static void selinux_sk_getsecid(struct sock *sk, u32 *secid) ...@@ -3598,7 +3598,7 @@ static void selinux_sk_getsecid(struct sock *sk, u32 *secid)
} }
} }
void selinux_sock_graft(struct sock* sk, struct socket *parent) static void selinux_sock_graft(struct sock* sk, struct socket *parent)
{ {
struct inode_security_struct *isec = SOCK_INODE(parent)->i_security; struct inode_security_struct *isec = SOCK_INODE(parent)->i_security;
struct sk_security_struct *sksec = sk->sk_security; struct sk_security_struct *sksec = sk->sk_security;
...@@ -3608,8 +3608,8 @@ void selinux_sock_graft(struct sock* sk, struct socket *parent) ...@@ -3608,8 +3608,8 @@ void selinux_sock_graft(struct sock* sk, struct socket *parent)
selinux_netlbl_sock_graft(sk, parent); selinux_netlbl_sock_graft(sk, parent);
} }
int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
struct request_sock *req) struct request_sock *req)
{ {
struct sk_security_struct *sksec = sk->sk_security; struct sk_security_struct *sksec = sk->sk_security;
int err; int err;
...@@ -3638,7 +3638,8 @@ int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, ...@@ -3638,7 +3638,8 @@ int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
return 0; return 0;
} }
void selinux_inet_csk_clone(struct sock *newsk, const struct request_sock *req) static void selinux_inet_csk_clone(struct sock *newsk,
const struct request_sock *req)
{ {
struct sk_security_struct *newsksec = newsk->sk_security; struct sk_security_struct *newsksec = newsk->sk_security;
...@@ -3649,7 +3650,8 @@ void selinux_inet_csk_clone(struct sock *newsk, const struct request_sock *req) ...@@ -3649,7 +3650,8 @@ void selinux_inet_csk_clone(struct sock *newsk, const struct request_sock *req)
time it will have been created and available. */ time it will have been created and available. */
} }
void selinux_req_classify_flow(const struct request_sock *req, struct flowi *fl) static void selinux_req_classify_flow(const struct request_sock *req,
struct flowi *fl)
{ {
fl->secid = req->secid; fl->secid = req->secid;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册