scm.h (b74b953b998bcc2db91b694446f3a2619ec32de6) scm.h (bba14de98753cb6599a2dae0e520714b2153522d)
1#ifndef __LINUX_NET_SCM_H
2#define __LINUX_NET_SCM_H
3
4#include <linux/limits.h>
5#include <linux/net.h>
6#include <linux/security.h>
7#include <linux/pid.h>
8#include <linux/nsproxy.h>
9
10/* Well, we should have at least one descriptor open
11 * to accept passed FDs 8)
12 */
1#ifndef __LINUX_NET_SCM_H
2#define __LINUX_NET_SCM_H
3
4#include <linux/limits.h>
5#include <linux/net.h>
6#include <linux/security.h>
7#include <linux/pid.h>
8#include <linux/nsproxy.h>
9
10/* Well, we should have at least one descriptor open
11 * to accept passed FDs 8)
12 */
13#define SCM_MAX_FD 255
13#define SCM_MAX_FD 253
14
15struct scm_fp_list {
16 struct list_head list;
14
15struct scm_fp_list {
16 struct list_head list;
17 int count;
17 short count;
18 short max;
18 struct file *fp[SCM_MAX_FD];
19};
20
21struct scm_cookie {
22 struct pid *pid; /* Skb credentials */
23 const struct cred *cred;
24 struct scm_fp_list *fp; /* Passed files */
25 struct ucred creds; /* Skb credentials */

--- 104 unchanged lines hidden ---
19 struct file *fp[SCM_MAX_FD];
20};
21
22struct scm_cookie {
23 struct pid *pid; /* Skb credentials */
24 const struct cred *cred;
25 struct scm_fp_list *fp; /* Passed files */
26 struct ucred creds; /* Skb credentials */

--- 104 unchanged lines hidden ---