Commit b8800aa5 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Al Viro

audit: make functions static

I was doing some namespace checks and found some simple stuff in
audit that could be cleaned up. Make some functions static, and
put const on make_reply payload arg.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d29be158
...@@ -506,7 +506,7 @@ int audit_send_list(void *_dest) ...@@ -506,7 +506,7 @@ int audit_send_list(void *_dest)
} }
struct sk_buff *audit_make_reply(int pid, int seq, int type, int done, struct sk_buff *audit_make_reply(int pid, int seq, int type, int done,
int multi, void *payload, int size) int multi, const void *payload, int size)
{ {
struct sk_buff *skb; struct sk_buff *skb;
struct nlmsghdr *nlh; struct nlmsghdr *nlh;
...@@ -555,8 +555,8 @@ static int audit_send_reply_thread(void *arg) ...@@ -555,8 +555,8 @@ static int audit_send_reply_thread(void *arg)
* Allocates an skb, builds the netlink message, and sends it to the pid. * Allocates an skb, builds the netlink message, and sends it to the pid.
* No failure notifications. * No failure notifications.
*/ */
void audit_send_reply(int pid, int seq, int type, int done, int multi, static void audit_send_reply(int pid, int seq, int type, int done, int multi,
void *payload, int size) const void *payload, int size)
{ {
struct sk_buff *skb; struct sk_buff *skb;
struct task_struct *tsk; struct task_struct *tsk;
......
...@@ -84,10 +84,7 @@ extern int audit_compare_dname_path(const char *dname, const char *path, ...@@ -84,10 +84,7 @@ extern int audit_compare_dname_path(const char *dname, const char *path,
int *dirlen); int *dirlen);
extern struct sk_buff * audit_make_reply(int pid, int seq, int type, extern struct sk_buff * audit_make_reply(int pid, int seq, int type,
int done, int multi, int done, int multi,
void *payload, int size); const void *payload, int size);
extern void audit_send_reply(int pid, int seq, int type,
int done, int multi,
void *payload, int size);
extern void audit_panic(const char *message); extern void audit_panic(const char *message);
struct audit_netlink_list { struct audit_netlink_list {
......
...@@ -60,7 +60,7 @@ struct audit_parent { ...@@ -60,7 +60,7 @@ struct audit_parent {
}; };
/* fsnotify handle. */ /* fsnotify handle. */
struct fsnotify_group *audit_watch_group; static struct fsnotify_group *audit_watch_group;
/* fsnotify events we care about. */ /* fsnotify events we care about. */
#define AUDIT_FS_WATCH (FS_MOVE | FS_CREATE | FS_DELETE | FS_DELETE_SELF |\ #define AUDIT_FS_WATCH (FS_MOVE | FS_CREATE | FS_DELETE | FS_DELETE_SELF |\
...@@ -123,7 +123,7 @@ void audit_put_watch(struct audit_watch *watch) ...@@ -123,7 +123,7 @@ void audit_put_watch(struct audit_watch *watch)
} }
} }
void audit_remove_watch(struct audit_watch *watch) static void audit_remove_watch(struct audit_watch *watch)
{ {
list_del(&watch->wlist); list_del(&watch->wlist);
audit_put_parent(watch->parent); audit_put_parent(watch->parent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment