[PATCH 3/8] SELinux netif.c non trivial fixes.

From: Justin P. Mattock
Date: Thu Jul 02 2009 - 01:32:49 EST


Signed-off-by: Justin P. Mattock <justinmattock@xxxxxxxxx>

Fix some comments.
---
security/selinux/netif.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/security/selinux/netif.c b/security/selinux/netif.c
index b4e14bc..dc6dc37 100644
--- a/security/selinux/netif.c
+++ b/security/selinux/netif.c
@@ -71,8 +71,8 @@ static inline struct sel_netif *sel_netif_find(int ifindex)
struct sel_netif *netif;

list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list)
- /* all of the devices should normally fit in the hash, so we
- * optimize for that case */
+ /* All of the devices should normally fit in the hash, so we
+ * optimize for that case. */
if (likely(netif->nsec.ifindex == ifindex))
return netif;

@@ -152,13 +152,13 @@ static int sel_netif_sid_slow(int ifindex, u32 *sid)
struct sel_netif *new = NULL;
struct net_device *dev;

- /* NOTE: we always use init's network namespace since we don't
- * currently support containers */
+ /* NOTE: We always use init's network namespace since we don't
+ * currently support containers. */

dev = dev_get_by_index(&init_net, ifindex);
if (unlikely(dev == NULL)) {
printk(KERN_WARNING
- "SELinux: failure in sel_netif_sid_slow(),"
+ "SELinux: Failure in sel_netif_sid_slow(),"
" invalid network interface (%d)\n", ifindex);
return -ENOENT;
}
@@ -189,7 +189,7 @@ out:
dev_put(dev);
if (unlikely(ret)) {
printk(KERN_WARNING
- "SELinux: failure in sel_netif_sid_slow(),"
+ "SELinux: Failure in sel_netif_sid_slow(),"
" unable to determine network interface label (%d)\n",
ifindex);
kfree(new);
--
1.6.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/