1 #ifndef __LINUX_NET_SCM_H
2 #define __LINUX_NET_SCM_H
13 #define SCM_MAX_FD 253
32 #ifdef CONFIG_SECURITY_NETWORK
43 #ifdef CONFIG_SECURITY_NETWORK
46 security_socket_getpeersec_dgram(sock,
NULL, &scm->secid);
56 scm->
pid = get_pid(pid);
57 scm->
cred = cred ? get_cred(cred) :
NULL;
75 scm_destroy_cred(scm);
83 memset(scm, 0,
sizeof(*scm));
86 unix_get_peersec_dgram(sock, scm);
92 #ifdef CONFIG_SECURITY_NETWORK
125 struct ucred ucreds = {
133 scm_destroy_cred(scm);
135 scm_passec(sock, msg, scm);