/freebsd/sys/security/mac/ |
H A D | mac_policy.h | 84 struct label; 129 struct label *dlabel, struct ifnet *ifp, 130 struct label *ifplabel); 132 struct bpf_d *d, struct label *dlabel); 134 struct label *dlabel, struct mbuf *m, 135 struct label *mlabel); 136 typedef void (*mpo_bpfdesc_destroy_label_t)(struct label *label); 137 typedef void (*mpo_bpfdesc_init_label_t)(struct label *label); 141 struct label *newlabel); 163 typedef void (*mpo_cred_copy_label_t)(struct label *src, [all …]
|
H A D | mac_inet.c | 75 static struct label * 78 struct label *label; in mac_inpcb_label_alloc() local 81 label = mac_labelzone_alloc(flag); in mac_inpcb_label_alloc() 82 if (label == NULL) in mac_inpcb_label_alloc() 85 MAC_POLICY_CHECK(inpcb_init_label, label, flag); in mac_inpcb_label_alloc() 87 MAC_POLICY_CHECK_NOSLEEP(inpcb_init_label, label, flag); in mac_inpcb_label_alloc() 89 MAC_POLICY_PERFORM_NOSLEEP(inpcb_destroy_label, label); in mac_inpcb_label_alloc() 90 mac_labelzone_free(label); in mac_inpcb_label_alloc() 93 return (label); in mac_inpcb_label_alloc() 120 static struct label * [all …]
|
H A D | mac_net.c | 94 struct label * 98 struct label *label; in mac_mbuf_to_label() local 105 label = (struct label *)(tag+1); in mac_mbuf_to_label() 106 return (label); in mac_mbuf_to_label() 109 static struct label * 112 struct label *label; in mac_bpfdesc_label_alloc() local 114 label = mac_labelzone_alloc(M_WAITOK); in mac_bpfdesc_label_alloc() 115 MAC_POLICY_PERFORM(bpfdesc_init_label, label); in mac_bpfdesc_label_alloc() 116 return (label); in mac_bpfdesc_label_alloc() 129 static struct label * [all …]
|
H A D | mac_sysv_msg.c | 63 static struct label * 66 struct label *label; in mac_sysv_msgmsg_label_alloc() local 68 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_msgmsg_label_alloc() 69 MAC_POLICY_PERFORM(sysvmsg_init_label, label); in mac_sysv_msgmsg_label_alloc() 70 return (label); in mac_sysv_msgmsg_label_alloc() 78 msgptr->label = mac_sysv_msgmsg_label_alloc(); in mac_sysvmsg_init() 80 msgptr->label = NULL; in mac_sysvmsg_init() 83 static struct label * 86 struct label *label; in mac_sysv_msgqueue_label_alloc() local 88 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_msgqueue_label_alloc() [all …]
|
H A D | mac_label.c | 62 zone_label = uma_zcreate("MAC labels", sizeof(struct label), in mac_labelzone_init() 73 mac_init_label(struct label *label) in mac_init_label() argument 76 bzero(label, sizeof(*label)); in mac_init_label() 77 label->l_flags = MAC_FLAG_INITIALIZED; in mac_init_label() 81 mac_destroy_label(struct label *label) in mac_destroy_label() argument 84 KASSERT(label->l_flags & MAC_FLAG_INITIALIZED, in mac_destroy_label() 88 bzero(label, sizeof(*label)); in mac_destroy_label() 90 label->l_flags &= ~MAC_FLAG_INITIALIZED; in mac_destroy_label() 97 struct label *label; in mac_labelzone_ctor() local 99 KASSERT(size == sizeof(*label), ("mac_labelzone_ctor: wrong size\n")); in mac_labelzone_ctor() [all …]
|
H A D | mac_inet6.c | 61 static struct label * 64 struct label *label; in mac_ip6q_label_alloc() local 67 label = mac_labelzone_alloc(flag); in mac_ip6q_label_alloc() 68 if (label == NULL) in mac_ip6q_label_alloc() 72 MAC_POLICY_CHECK(ip6q_init_label, label, flag); in mac_ip6q_label_alloc() 74 MAC_POLICY_CHECK_NOSLEEP(ip6q_init_label, label, flag); in mac_ip6q_label_alloc() 76 MAC_POLICY_PERFORM_NOSLEEP(ip6q_destroy_label, label); in mac_ip6q_label_alloc() 77 mac_labelzone_free(label); in mac_ip6q_label_alloc() 80 return (label); in mac_ip6q_label_alloc() 97 mac_ip6q_label_free(struct label *label) in mac_ip6q_label_free() argument [all …]
|
H A D | mac_socket.c | 100 struct label * 103 struct label *label; in mac_socket_label_alloc() local 106 label = mac_labelzone_alloc(flag); in mac_socket_label_alloc() 107 if (label == NULL) in mac_socket_label_alloc() 111 MAC_POLICY_CHECK(socket_init_label, label, flag); in mac_socket_label_alloc() 113 MAC_POLICY_CHECK_NOSLEEP(socket_init_label, label, flag); in mac_socket_label_alloc() 115 MAC_POLICY_PERFORM_NOSLEEP(socket_destroy_label, label); in mac_socket_label_alloc() 116 mac_labelzone_free(label); in mac_socket_label_alloc() 119 return (label); in mac_socket_label_alloc() 122 static struct label * [all …]
|
H A D | mac_sysv_sem.c | 62 static struct label * 65 struct label *label; in mac_sysv_sem_label_alloc() local 67 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_sem_label_alloc() 68 MAC_POLICY_PERFORM(sysvsem_init_label, label); in mac_sysv_sem_label_alloc() 69 return (label); in mac_sysv_sem_label_alloc() 77 semakptr->label = mac_sysv_sem_label_alloc(); in mac_sysvsem_init() 79 semakptr->label = NULL; in mac_sysvsem_init() 83 mac_sysv_sem_label_free(struct label *label) in mac_sysv_sem_label_free() argument 86 MAC_POLICY_PERFORM_NOSLEEP(sysvsem_destroy_label, label); in mac_sysv_sem_label_free() 87 mac_labelzone_free(label); in mac_sysv_sem_label_free() [all …]
|
H A D | mac_internal.h | 156 struct label { struct 207 struct label *mac_labelzone_alloc(int flags); 208 void mac_labelzone_free(struct label *label); 211 void mac_init_label(struct label *label); 212 void mac_destroy_label(struct label *label); 239 struct label *mac_cred_label_alloc(void); 240 void mac_cred_label_free(struct label *label); 241 struct label *mac_pipe_label_alloc(void); 242 void mac_pipe_label_free(struct label *label); 243 struct label *mac_socket_label_alloc(int flag); [all …]
|
H A D | mac_sysv_shm.c | 62 static struct label * 65 struct label *label; in mac_sysv_shm_label_alloc() local 67 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_shm_label_alloc() 68 MAC_POLICY_PERFORM(sysvshm_init_label, label); in mac_sysv_shm_label_alloc() 69 return (label); in mac_sysv_shm_label_alloc() 77 shmsegptr->label = mac_sysv_shm_label_alloc(); in mac_sysvshm_init() 79 shmsegptr->label = NULL; in mac_sysvshm_init() 83 mac_sysv_shm_label_free(struct label *label) in mac_sysv_shm_label_free() argument 86 MAC_POLICY_PERFORM_NOSLEEP(sysvshm_destroy_label, label); in mac_sysv_shm_label_free() 87 mac_labelzone_free(label); in mac_sysv_shm_label_free() [all …]
|
/freebsd/contrib/byacc/test/yacc/ |
H A D | grammar.dot | 12 …q0 [label="0:\l $accept -> . program $end\l program -> . { $end }\l program -> . translation_un… 13 …q1 [label="1:\l external_declaration -> error . T_MATCHRBRACE\l external_declaration -> error . … 14 …q2 [label="2:\l any_id -> . T_IDENTIFIER\l any_id -> . T_TYPEDEF_NAME\l declarator -> . pointer… 15 …q3 [label="3:\l type_qualifier -> . T_TYPE_QUALIFIER\l type_qualifier -> . T_DEFINE_NAME\l poin… 16 …q4 [label="4:\l any_id -> . T_IDENTIFIER\l any_id -> . T_TYPEDEF_NAME\l identifier_or_ref -> '&… 17 …q5 [label="5:\l any_id -> T_IDENTIFIER . { ')' '=' ',' ';' T_VA_DCL T_LBRACE T_BRACKETS T_TYPE_QU… 18 …q6 [label="6:\l type_specifier -> T_TYPEDEF_NAME . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Im… 19 …q7 [label="7:\l type_qualifier -> T_DEFINE_NAME . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Ima… 20 …q8 [label="8:\l storage_class -> T_AUTO . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imaginary T… 21 …q9 [label="9:\l linkage_specification -> T_EXTERN . T_STRING_LITERAL braces\l linkage_specificat… [all …]
|
/freebsd/contrib/byacc/test/btyacc/ |
H A D | grammar.dot | 12 …q0 [label="0:\l $accept -> . program $end\l program -> . { $end }\l program -> . translation_un… 13 …q1 [label="1:\l external_declaration -> error . T_MATCHRBRACE\l external_declaration -> error . … 14 …q2 [label="2:\l any_id -> . T_IDENTIFIER\l any_id -> . T_TYPEDEF_NAME\l declarator -> . pointer… 15 …q3 [label="3:\l type_qualifier -> . T_TYPE_QUALIFIER\l type_qualifier -> . T_DEFINE_NAME\l poin… 16 …q4 [label="4:\l any_id -> . T_IDENTIFIER\l any_id -> . T_TYPEDEF_NAME\l identifier_or_ref -> '&… 17 …q5 [label="5:\l any_id -> T_IDENTIFIER . { ')' '=' ',' ';' T_VA_DCL T_LBRACE T_BRACKETS T_TYPE_QU… 18 …q6 [label="6:\l type_specifier -> T_TYPEDEF_NAME . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Im… 19 …q7 [label="7:\l type_qualifier -> T_DEFINE_NAME . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Ima… 20 …q8 [label="8:\l storage_class -> T_AUTO . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imaginary T… 21 …q9 [label="9:\l linkage_specification -> T_EXTERN . T_STRING_LITERAL braces\l linkage_specificat… [all …]
|
/freebsd/sys/security/mac_stub/ |
H A D | mac_stub.c | 127 stub_init_label(struct label *label) in stub_init_label() argument 133 stub_init_label_waitcheck(struct label *label, int flag) in stub_init_label_waitcheck() argument 140 stub_destroy_label(struct label *label) in stub_destroy_label() argument 146 stub_copy_label(struct label *src, struct label *dest) in stub_copy_label() 152 stub_externalize_label(struct label *label, char *element_name, in stub_externalize_label() argument 160 stub_internalize_label(struct label *label, char *element_name, in stub_internalize_label() argument 172 stub_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in stub_bpfdesc_check_receive() 173 struct ifnet *ifp, struct label *ifplabel) in stub_bpfdesc_check_receive() 181 struct label *dlabel) in stub_bpfdesc_create() 187 stub_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in stub_bpfdesc_create_mbuf() [all …]
|
/freebsd/share/misc/ |
H A D | committers-src.dot | 14 # foo [label="Foo Bar\nfoo@FreeBSD.org\n????/??/??"] 22 # foo [label="Foo Bar\nfoo@FreeBSD.org\n????/??/??\n????/??/??"] 31 alm [label="Andrew Moore\nalm@FreeBSD.org\n1993/06/12\n????/??/??"] 32 anholt [label="Eric Anholt\nanholt@FreeBSD.org\n2002/04/22\n2008/08/07"] 33 archie [label="Archie Cobbs\narchie@FreeBSD.org\n1998/11/06\n2006/06/09"] 34 arr [label="Andrew R. Reiter\narr@FreeBSD.org\n2001/11/02\n2005/05/25"] 35 arun [label="Arun Sharma\narun@FreeBSD.org\n2003/03/06\n2006/12/16"] 36 asmodai [label="Jeroen Ruigrok\nasmodai@FreeBSD.org\n1999/12/16\n2001/11/16"] 37 benjsc [label="Benjamin Close\nbenjsc@FreeBSD.org\n2007/02/09\n2010/09/15"] 38 billf [label="Bill Fumerola\nbillf@FreeBSD.org\n1998/11/11\n2008/11/10"] [all …]
|
H A D | committers-ports.dot | 14 # foo [label="Foo Bar\nfoo@FreeBSD.org\n????/??/??"] 22 # foo [label="Foo Bar\nfoo@FreeBSD.org\n????/??/??\n????/??/??"] 31 ache [label="Andrey Chernov\nache@FreeBSD.org\n1994/11/15\n2017/08/17"] 32 ahze [label="Michael Johnson\nahze@FreeBSD.org\n2004/10/29\n2013/12/02"] 33 alexbl [label="Alexander Botero-Lowry\nalexbl@FreeBSD.org\n2006/09/11\n2011/01/14"] 34 alonso [label="Alonso Schaich\nalonso@FreeBSD.org\n2014/08/14\n2017/08/07"] 35 anray [label="Andrey Slusar\nanray@FreeBSD.org\n2005/12/11\n2011/01/14"] 36 araujo [label="Marcelo Araujo\naraujo@FreeBSD.org\n2007/04/26\n2020/11/03"] 37 asami [label="Satoshi Asami\nasami@FreeBSD.org\n1994/11/18\n2001/09/11"] 38 avilla [label="Alberto Villa\navilla@FreeBSD.org\n2010/01/24\n2018/10/01"] [all …]
|
H A D | committers-doc.dot | 14 # foo [label="Foo Bar\nfoo@FreeBSD.org\n????/??/??"] 22 # foo [label="Foo Bar\nfoo@FreeBSD.org\n????/??/??\n????/??/??"] 31 ache [label="Andrey Chernov\nache@FreeBSD.org\n1997/06/13\n2010/12/11"] 32 bhd [label="Björn Heidotting\nbhd@FreeBSD.org\n2014/10/14\n2022/09/16"] 33 bmah [label="Bruce A. Mah\nbmah@FreeBSD.org\n2000/08/22\n2009/09/13"] 34 bvs [label="Vitaly Bogdanov\nbvs@FreeBSD.org\n2005/10/03\n2010/12/11"] 35 chinsan [label="Chinsan Huang\nchinsan@FreeBSD.org\n2006/09/20\n2014/03/02"] 36 crees [label="Chris Rees\ncrees@FreeBSD.org\n2013/05/27\n2022/11/08"] 37 den [label="Denis Peplin\nden@FreeBSD.org\n2003/09/13\n2009/07/09"] 38 dexter [label="Michael Dexter\ndexter@FreeBSD.org\n2016/11/15\n2019/04/02"] [all …]
|
/freebsd/sys/security/mac_test/ |
H A D | mac_test.c | 133 #define LABEL_CHECK(label, magic) do { \ argument 134 if (label != NULL) { \ 135 KASSERT(SLOT(label) == magic || SLOT(label) == 0, \ 140 #define LABEL_DESTROY(label, magic) do { \ argument 141 if (SLOT(label) == magic || SLOT(label) == 0) { \ 142 SLOT_SET(label, MAGIC_FREE); \ 143 } else if (SLOT(label) == MAGIC_FREE) { \ 150 #define LABEL_INIT(label, magic) do { \ argument 151 SLOT_SET(label, magic); \ 154 #define LABEL_NOTFREE(label) do { \ argument [all …]
|
/freebsd/crypto/openssl/doc/life-cycles/ |
H A D | cipher.dot | 4 begin [label=start, color="#deeaee", style="filled"]; 10 end [label="freed", color="#deeaee", style="filled"]; 12 d_initialised [label="initialised\n(decryption)", fontcolor="#c94c4c"]; 13 d_updated [label="updated\n(decryption)", fontcolor="#c94c4c"]; 14 e_initialised [label="initialised\n(encryption)", fontcolor="#c94c4c"]; 15 e_updated [label="updated\n(encryption)", fontcolor="#c94c4c"]; 17 begin -> newed [label="EVP_CIPHER_CTX_new"]; 18 newed -> initialised [label="EVP_CipherInit"]; 19 initialised -> initialised [label="EVP_CipherInit\n(not required but allowed)", 21 initialised -> updated [label="EVP_CipherUpdate", weight=2]; [all …]
|
H A D | pkey.dot | 5 begin [label=start, color="#deeaee", style="filled"]; 7 digestsign [label="digest sign", fontcolor="#AB3910", color="#AB3910"] 9 verifyrecover [label="verify recover", fontcolor="#B19FF9", color="#B19FF9"] 15 paramgen [label="parameter\ngeneration", fontcolor="#2879C0", color="#2879C0"] 16 keygen [label="key\ngeneration", fontcolor="#2F7604", color="#2F7604"] 18 begin -> newed [label="EVP_PKEY_CTX_new"]; 20 newed -> digestsign [label="EVP_PKEY_sign_init", color="#AB3910", fontcolor="#AB3910"]; 21 digestsign -> digestsign [label="EVP_PKEY_sign", color="#AB3910", fontcolor="#AB3910"]; 23 newed -> verify [label="EVP_PKEY_verify_init", fontcolor="#F8CF2C", color="#F8CF2C"]; 24 verify -> verify [label="EVP_PKEY_verify", fontcolor="#F8CF2C", color="#F8CF2C"]; [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | x86cpuid.pl | 34 &jnc (&label("nocpuid")); 48 &jz (&label("intel")); 59 &jnz (&label("intel")); 65 &jb (&label("intel")); 72 &jb (&label("intel")); 83 &jnc (&label("generic")); 87 &ja (&label("generic")); 89 &jmp (&label("generic")); 94 &jb (&label("nocacheinfo")); 109 &jne (&label("notintel")); [all …]
|
/freebsd/sbin/pfctl/tests/files/ |
H A D | pf0047.in | 1 pass in on lo0 all label "" 3 pass in all label "$if" 4 pass in on lo0 all label "$if" 5 pass in on lo0 all label "$if$if" 7 pass in on lo0 all label "$srcaddr" 8 pass in on lo0 from 0/0 to any label "$srcaddr" 9 pass in on lo0 from 127.0.0.1 to any label "$srcaddr" 10 pass in on lo0 from 127.0.0.1 to any label "$srcaddr$srcaddr" 11 pass in on lo0 from 127.0.0.1 to any label ":$srcaddr:$srcaddr:" 12 pass in on lo0 from 127.0.0.1/8 to any label "$srcaddr" [all …]
|
H A D | pf0047.ok | 2 pass in all flags S/SA keep state label "any" 3 pass in on lo0 all flags S/SA keep state label "lo0" 4 pass in on lo0 all flags S/SA keep state label "lo0lo0" 5 pass in on lo0 all flags S/SA keep state label "any" 6 pass in on lo0 inet all flags S/SA keep state label "any" 7 pass in on lo0 inet from 127.0.0.1 to any flags S/SA keep state label "127.0.0.1" 8 pass in on lo0 inet from 127.0.0.1 to any flags S/SA keep state label "127.0.0.1127.0.0.1" 9 pass in on lo0 inet from 127.0.0.1 to any flags S/SA keep state label ":127.0.0.1:127.0.0.1:" 10 pass in on lo0 inet from 127.0.0.0/8 to any flags S/SA keep state label "127.0.0.0/8" 11 pass in on lo0 inet from 127.0.0.0/16 to any flags S/SA keep state label "127.0.0.0/16127.0.0.0/16" [all …]
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | ugidfw_internal.h | 44 struct label *vplabel); 46 struct label *vplabel); 48 struct label *vplabel); 54 struct label *vplabel, accmode_t accmode); 56 struct label *dvplabel); 58 struct label *dvplabel); 60 struct label *dvplabel, struct componentname *cnp, 63 struct label *vplabel, acl_type_t type); 65 struct vnode *vp, struct label *vplabel, int attrnamespace, 68 struct label *vplabel, struct image_params *imgp, [all …]
|
H A D | ugidfw_vnode.c | 63 struct label *vplabel, accmode_t accmode) in ugidfw_vnode_check_access() 71 struct label *dvplabel) in ugidfw_vnode_check_chdir() 79 struct label *dvplabel) in ugidfw_vnode_check_chroot() 87 struct label *dvplabel, struct componentname *cnp, struct vattr *vap) in ugidfw_check_create_vnode() 95 struct label *vplabel, acl_type_t type) in ugidfw_vnode_check_deleteacl() 103 struct label *vplabel, int attrnamespace, const char *name) in ugidfw_vnode_check_deleteextattr() 111 struct label *vplabel, struct image_params *imgp, in ugidfw_vnode_check_exec() 112 struct label *execlabel) in ugidfw_vnode_check_exec() 120 struct label *vplabel, acl_type_t type) in ugidfw_vnode_check_getacl() 128 struct label *vplabel, int attrnamespace, const char *name) in ugidfw_vnode_check_getextattr() [all …]
|
/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_drive.c | 149 bcopy(d_hdr + off, m_hdr->label.sysname, GV_HOSTNAME_LEN); in gv_read_header() 151 bcopy(d_hdr + off, m_hdr->label.name, GV_MAXDRIVENAME); in gv_read_header() 153 m_hdr->label.date_of_birth.tv_sec = GV_GET64(be); in gv_read_header() 154 m_hdr->label.date_of_birth.tv_usec = GV_GET64(be); in gv_read_header() 155 m_hdr->label.last_update.tv_sec = GV_GET64(be); in gv_read_header() 156 m_hdr->label.last_update.tv_usec = GV_GET64(be); in gv_read_header() 157 m_hdr->label.drive_size = GV_GET64(be); in gv_read_header() 168 bcopy(d_hdr + 16, m_hdr->label.sysname, GV_HOSTNAME_LEN); in gv_read_header() 170 bcopy(d_hdr + 48, m_hdr->label.name, GV_MAXDRIVENAME); in gv_read_header() 172 m_hdr->label.date_of_birth.tv_sec = GV_GET64(be); in gv_read_header() [all …]
|