Signed-off-by: Justin P. Mattock <justinmattock@xxxxxxxxx> Fix a comment to sound better. Fix some comments. --- security/selinux/netlabel.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/security/selinux/netlabel.c b/security/selinux/netlabel.c index 2e98441..7868ea2 100644 --- a/security/selinux/netlabel.c +++ b/security/selinux/netlabel.c @@ -167,7 +167,7 @@ void selinux_netlbl_sk_security_reset(struct sk_security_struct *ssec) * * Description: * Call the NetLabel mechanism to get the security attributes of the given - * packet and use those attributes to determine the correct context/SID to + * packet and use those attributes to determine the correct context/SID to be * assign to the packet. Returns zero on success, negative values on failure. * */ @@ -216,8 +216,8 @@ int selinux_netlbl_skbuff_setsid(struct sk_buff *skb, struct netlbl_lsm_secattr *secattr = NULL; struct sock *sk; - /* if this is a locally generated packet check to see if it is already - * being labeled by it's parent socket, if it is just exit */ + /* If this is a locally generated packet check to see if it is already + * being labeled by it's parent socket, if it is just exit. */ sk = skb->sk; if (sk != NULL) { struct sk_security_struct *sksec = sk->sk_security; @@ -444,9 +444,9 @@ int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr) local_bh_disable(); bh_lock_sock_nested(sk); - /* connected sockets are allowed to disconnect when the address family + /* Connected sockets are allowed to disconnect when the address family * is set to AF_UNSPEC, if that is what is happening we want to reset - * the socket */ + * the socket. */ if (addr->sa_family == AF_UNSPEC) { netlbl_sock_delattr(sk); sksec->nlbl_state = NLBL_REQSKB; -- 1.6.3.2 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.