10 #include <linux/capability.h>
11 #include <linux/errno.h>
12 #include <linux/types.h>
13 #include <linux/socket.h>
15 #include <linux/kernel.h>
17 #include <linux/string.h>
19 #include <linux/net.h>
21 #include <linux/slab.h>
24 #include <linux/netdevice.h>
25 #include <linux/if_arp.h>
28 #include <asm/uaccess.h>
29 #include <linux/fcntl.h>
32 #include <linux/list.h>
36 #include <linux/stat.h>
37 #include <linux/netfilter.h>
38 #include <linux/sysctl.h>
39 #include <linux/export.h>
61 if (uid_eq(ax25_uid->
uid, uid)) {
101 if (!uid_valid(sax25_kuid))
108 if (sax->sax25_uid == 0)
114 ax25_uid->
uid = sax25_kuid;
118 hlist_add_head(&ax25_uid->
uid_node, &ax25_uid_list);
133 if (ax25_uid ==
NULL) {
137 hlist_del_init(&ax25_uid->
uid_node);
138 ax25_uid_put(ax25_uid);
150 #ifdef CONFIG_PROC_FS
152 static void *ax25_uid_seq_start(
struct seq_file *seq, loff_t *
pos)
159 static void *ax25_uid_seq_next(
struct seq_file *seq,
void *
v, loff_t *
pos)
164 static void ax25_uid_seq_stop(
struct seq_file *seq,
void *
v)
170 static int ax25_uid_seq_show(
struct seq_file *seq,
void *
v)
188 .
start = ax25_uid_seq_start,
189 .next = ax25_uid_seq_next,
190 .stop = ax25_uid_seq_stop,
191 .show = ax25_uid_seq_show,
196 return seq_open(file, &ax25_uid_seqops);
201 .open = ax25_uid_info_open,
220 hlist_del_init(&ax25_uid->
uid_node);
221 ax25_uid_put(ax25_uid);