Skip to content

Commit

Permalink
[SELINUX]: security/selinux/hooks.c: Make 4 functions static.
Browse files Browse the repository at this point in the history
This patch makes four needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Sep 22, 2006
1 parent 97a4f3e commit 9a673e5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 sk_security_struct *sksec = sk->sk_security;
Expand All @@ -3608,8 +3608,8 @@ void selinux_sock_graft(struct sock* sk, struct socket *parent)
selinux_netlbl_sock_graft(sk, parent);
}

int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
struct request_sock *req)
static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
struct request_sock *req)
{
struct sk_security_struct *sksec = sk->sk_security;
int err;
Expand Down Expand Up @@ -3638,7 +3638,8 @@ int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
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;

Expand All @@ -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. */
}

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;
}
Expand Down

0 comments on commit 9a673e5

Please sign in to comment.