lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1302749245-29303-1-git-send-email-timcour@gmail.com>
Date:	Wed, 13 Apr 2011 19:47:25 -0700
From:	Timothy Courrejou <timcour@...il.com>
To:	viro@...iv.linux.org.uk
Cc:	eparis@...hat.com, linux-kernel@...r.kernel.org,
	trivial@...nel.org, Timothy Courrejou <timcour@...il.com>
Subject: [PATCH] audit: fixed line length and space coding style issues.

Fixed coding style issues.

Signed-off-by: Timothy Courrejou <timcour@...il.com>
---
 kernel/audit_watch.c |   41 ++++++++++++++++++++++++-----------------
 1 files changed, 24 insertions(+), 17 deletions(-)

diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index e683869..ffe2ee4 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -35,13 +35,14 @@
 /*
  * Reference counting:
  *
- * audit_parent: lifetime is from audit_init_parent() to receipt of an FS_IGNORED
- * 	event.  Each audit_watch holds a reference to its associated parent.
+ * audit_parent: lifetime is from audit_init_parent() to receipt of an
+ *      FS_IGNORED event.  Each audit_watch holds a reference to its associated
+ *      parent.
  *
  * audit_watch: if added to lists, lifetime is from audit_init_watch() to
- * 	audit_remove_watch().  Additionally, an audit_watch may exist
- * 	temporarily to assist in searching existing filter data.  Each
- * 	audit_krule holds a reference to its associated watch.
+ *      audit_remove_watch().  Additionally, an audit_watch may exist
+ *      temporarily to assist in searching existing filter data.  Each
+ *      audit_krule holds a reference to its associated watch.
  */
 
 struct audit_watch {
@@ -158,7 +159,8 @@ static struct audit_parent *audit_init_parent(struct path *path)
 
 	fsnotify_init_mark(&parent->mark, audit_watch_free_mark);
 	parent->mark.mask = AUDIT_FS_WATCH;
-	ret = fsnotify_add_mark(&parent->mark, audit_watch_group, inode, NULL, 0);
+	ret = fsnotify_add_mark(&parent->mark, audit_watch_group,
+				inode, NULL, 0);
 	if (ret < 0) {
 		audit_free_parent(parent);
 		return ERR_PTR(ret);
@@ -235,7 +237,8 @@ out:
 	return new;
 }
 
-static void audit_watch_log_rule_change(struct audit_krule *r, struct audit_watch *w, char *op)
+static void audit_watch_log_rule_change(struct audit_krule *r,
+					struct audit_watch *w, char *op)
 {
 	if (audit_enabled) {
 		struct audit_buffer *ab;
@@ -306,7 +309,8 @@ static void audit_update_watch(struct audit_parent *parent,
 				audit_get_watch(nwatch);
 				nentry->rule.watch = nwatch;
 				list_add(&nentry->rule.rlist, &nwatch->rules);
-				list_add_rcu(&nentry->list, &audit_inode_hash[h]);
+				list_add_rcu(&nentry->list,
+					     &audit_inode_hash[h]);
 				list_replace(&oentry->rule.list,
 					     &nentry->rule.list);
 			}
@@ -481,12 +485,13 @@ void audit_remove_watch_rule(struct audit_krule *krule)
 	}
 }
 
-static bool audit_watch_should_send_event(struct fsnotify_group *group, struct inode *inode,
+static bool audit_watch_should_send_event(struct fsnotify_group *group,
+					  struct inode *inode,
 					  struct fsnotify_mark *inode_mark,
 					  struct fsnotify_mark *vfsmount_mark,
 					  __u32 mask, void *data, int data_type)
 {
-       return true;
+	return true;
 }
 
 /* Update watch data in audit rules based on fsnotify events. */
@@ -518,9 +523,11 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
 	};
 
 	if (mask & (FS_CREATE|FS_MOVED_TO) && inode)
-		audit_update_watch(parent, dname, inode->i_sb->s_dev, inode->i_ino, 0);
+		audit_update_watch(parent, dname, inode->i_sb->s_dev,
+				   inode->i_ino, 0);
 	else if (mask & (FS_DELETE|FS_MOVED_FROM))
-		audit_update_watch(parent, dname, (dev_t)-1, (unsigned long)-1, 1);
+		audit_update_watch(parent, dname,
+				   (dev_t)-1, (unsigned long)-1, 1);
 	else if (mask & (FS_DELETE_SELF|FS_UNMOUNT|FS_MOVE_SELF))
 		audit_remove_parent_watches(parent);
 
@@ -528,11 +535,11 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
 }
 
 static const struct fsnotify_ops audit_watch_fsnotify_ops = {
-	.should_send_event = 	audit_watch_should_send_event,
-	.handle_event = 	audit_watch_handle_event,
-	.free_group_priv = 	NULL,
-	.freeing_mark = 	NULL,
-	.free_event_priv = 	NULL,
+	.should_send_event =    audit_watch_should_send_event,
+	.handle_event =         audit_watch_handle_event,
+	.free_group_priv =      NULL,
+	.freeing_mark =         NULL,
+	.free_event_priv =      NULL,
 };
 
 static int __init audit_watch_init(void)
-- 
1.7.4.2

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ