aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 2a6bbb921e1e..180b26b97d2d 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3598,7 +3598,7 @@ static void selinux_sk_getsecid(struct sock *sk, u32 *secid)
3598 } 3598 }
3599} 3599}
3600 3600
3601void selinux_sock_graft(struct sock* sk, struct socket *parent) 3601static void selinux_sock_graft(struct sock* sk, struct socket *parent)
3602{ 3602{
3603 struct inode_security_struct *isec = SOCK_INODE(parent)->i_security; 3603 struct inode_security_struct *isec = SOCK_INODE(parent)->i_security;
3604 struct sk_security_struct *sksec = sk->sk_security; 3604 struct sk_security_struct *sksec = sk->sk_security;
@@ -3608,8 +3608,8 @@ void selinux_sock_graft(struct sock* sk, struct socket *parent)
3608 selinux_netlbl_sock_graft(sk, parent); 3608 selinux_netlbl_sock_graft(sk, parent);
3609} 3609}
3610 3610
3611int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, 3611static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
3612 struct request_sock *req) 3612 struct request_sock *req)
3613{ 3613{
3614 struct sk_security_struct *sksec = sk->sk_security; 3614 struct sk_security_struct *sksec = sk->sk_security;
3615 int err; 3615 int err;
@@ -3638,7 +3638,8 @@ int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
3638 return 0; 3638 return 0;
3639} 3639}
3640 3640
3641void selinux_inet_csk_clone(struct sock *newsk, const struct request_sock *req) 3641static void selinux_inet_csk_clone(struct sock *newsk,
3642 const struct request_sock *req)
3642{ 3643{
3643 struct sk_security_struct *newsksec = newsk->sk_security; 3644 struct sk_security_struct *newsksec = newsk->sk_security;
3644 3645
@@ -3649,7 +3650,8 @@ void selinux_inet_csk_clone(struct sock *newsk, const struct request_sock *req)
3649 time it will have been created and available. */ 3650 time it will have been created and available. */
3650} 3651}
3651 3652
3652void selinux_req_classify_flow(const struct request_sock *req, struct flowi *fl) 3653static void selinux_req_classify_flow(const struct request_sock *req,
3654 struct flowi *fl)
3653{ 3655{
3654 fl->secid = req->secid; 3656 fl->secid = req->secid;
3655} 3657}