Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.1.9/security/apparmor/
Dipc.c56 if (aad(sa)->request & AA_SIGNAL_PERM_MASK) { in audit_signal_cb()
58 audit_signal_mask(aad(sa)->request)); in audit_signal_cb()
59 if (aad(sa)->denied & AA_SIGNAL_PERM_MASK) { in audit_signal_cb()
61 audit_signal_mask(aad(sa)->denied)); in audit_signal_cb()
64 if (aad(sa)->signal == SIGUNKNOWN) in audit_signal_cb()
66 aad(sa)->unmappedsig); in audit_signal_cb()
67 else if (aad(sa)->signal < MAXMAPPED_SIGNAME) in audit_signal_cb()
68 audit_log_format(ab, " signal=%s", sig_names[aad(sa)->signal]); in audit_signal_cb()
71 aad(sa)->signal - SIGRT_BASE); in audit_signal_cb()
73 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_signal_cb()
[all …]
Daudit.c61 aa_audit_type[aad(sa)->type]); in audit_pre()
64 if (aad(sa)->op) { in audit_pre()
65 audit_log_format(ab, " operation=\"%s\"", aad(sa)->op); in audit_pre()
68 if (aad(sa)->info) { in audit_pre()
69 audit_log_format(ab, " info=\"%s\"", aad(sa)->info); in audit_pre()
70 if (aad(sa)->error) in audit_pre()
71 audit_log_format(ab, " error=%d", aad(sa)->error); in audit_pre()
74 if (aad(sa)->label) { in audit_pre()
75 struct aa_label *label = aad(sa)->label; in audit_pre()
94 if (aad(sa)->name) { in audit_pre()
[all …]
Dfile.c50 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
52 map_mask_to_chr_mask(aad(sa)->request)); in file_audit_cb()
55 if (aad(sa)->denied & AA_AUDIT_FILE_MASK) { in file_audit_cb()
57 map_mask_to_chr_mask(aad(sa)->denied)); in file_audit_cb()
60 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
64 from_kuid(&init_user_ns, aad(sa)->fs.ouid)); in file_audit_cb()
67 if (aad(sa)->peer) { in file_audit_cb()
69 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in file_audit_cb()
71 } else if (aad(sa)->fs.target) { in file_audit_cb()
73 audit_log_untrustedstring(ab, aad(sa)->fs.target); in file_audit_cb()
[all …]
Dresource.c35 rlim_names[aad(sa)->rlim.rlim], aad(sa)->rlim.max); in audit_cb()
36 if (aad(sa)->peer) { in audit_cb()
38 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_cb()
58 aad(&sa)->rlim.rlim = resource; in audit_resource()
59 aad(&sa)->rlim.max = value; in audit_resource()
60 aad(&sa)->peer = peer; in audit_resource()
61 aad(&sa)->info = info; in audit_resource()
62 aad(&sa)->error = error; in audit_resource()
Dtask.c212 if (aad(sa)->request & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb()
214 audit_ptrace_mask(aad(sa)->request)); in audit_ptrace_cb()
216 if (aad(sa)->denied & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb()
218 audit_ptrace_mask(aad(sa)->denied)); in audit_ptrace_cb()
222 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_ptrace_cb()
234 aad(sa)->peer = peer; in profile_ptrace_perm()
266 aad(sa)->label = &tracer->label; in profile_tracer_perm()
267 aad(sa)->peer = tracee; in profile_tracer_perm()
268 aad(sa)->request = 0; in profile_tracer_perm()
269 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
Dnet.c81 if (sock_type_names[aad(sa)->net.type]) in audit_net_cb()
83 sock_type_names[aad(sa)->net.type]); in audit_net_cb()
86 aad(sa)->net.type); in audit_net_cb()
87 audit_log_format(ab, " protocol=%d", aad(sa)->net.protocol); in audit_net_cb()
89 if (aad(sa)->request & NET_PERMS_MASK) { in audit_net_cb()
91 aa_audit_perm_mask(ab, aad(sa)->request, NULL, 0, in audit_net_cb()
94 if (aad(sa)->denied & NET_PERMS_MASK) { in audit_net_cb()
96 aa_audit_perm_mask(ab, aad(sa)->denied, NULL, 0, in audit_net_cb()
100 if (aad(sa)->peer) { in audit_net_cb()
102 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_net_cb()
Dlib.c129 aad(&sa)->info = str; in aa_info_message()
266 if (aad(sa)->request) { in aa_audit_perms_cb()
268 aa_audit_perm_mask(ab, aad(sa)->request, aa_file_perm_chrs, in aa_audit_perms_cb()
272 if (aad(sa)->denied) { in aa_audit_perms_cb()
274 aa_audit_perm_mask(ab, aad(sa)->denied, aa_file_perm_chrs, in aa_audit_perms_cb()
279 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in aa_audit_perms_cb()
418 aad(sa)->label = &profile->label; in aa_profile_label_perm()
419 aad(sa)->peer = &target->label; in aa_profile_label_perm()
420 aad(sa)->request = request; in aa_profile_label_perm()
480 aad(sa)->label = &profile->label; in aa_check_perms()
[all …]
Dmount.c90 if (aad(sa)->mnt.type) { in audit_cb()
92 audit_log_untrustedstring(ab, aad(sa)->mnt.type); in audit_cb()
94 if (aad(sa)->mnt.src_name) { in audit_cb()
96 audit_log_untrustedstring(ab, aad(sa)->mnt.src_name); in audit_cb()
98 if (aad(sa)->mnt.trans) { in audit_cb()
100 audit_log_untrustedstring(ab, aad(sa)->mnt.trans); in audit_cb()
102 if (aad(sa)->mnt.flags) { in audit_cb()
104 audit_mnt_flags(ab, aad(sa)->mnt.flags); in audit_cb()
107 if (aad(sa)->mnt.data) { in audit_cb()
109 audit_log_untrustedstring(ab, aad(sa)->mnt.data); in audit_cb()
[all …]
Dpolicy_unpack.c82 if (aad(sa)->iface.ns) { in audit_cb()
84 audit_log_untrustedstring(ab, aad(sa)->iface.ns); in audit_cb()
86 if (aad(sa)->name) { in audit_cb()
88 audit_log_untrustedstring(ab, aad(sa)->name); in audit_cb()
90 if (aad(sa)->iface.pos) in audit_cb()
91 audit_log_format(ab, " offset=%ld", aad(sa)->iface.pos); in audit_cb()
112 aad(&sa)->iface.pos = e->pos - e->start; in audit_iface()
113 aad(&sa)->iface.ns = ns_name; in audit_iface()
115 aad(&sa)->name = new->base.hname; in audit_iface()
117 aad(&sa)->name = name; in audit_iface()
[all …]
Dcapability.c70 aad(sa)->error = error; in audit_caps()
131 aad(sa)->info = "optional: no audit"; in profile_capable()
/linux-6.1.9/net/mac80211/
Dwpa.c318 static u8 ccmp_gcmp_aad(struct sk_buff *skb, u8 *aad) in ccmp_gcmp_aad() argument
352 put_unaligned_be16(len_a, &aad[0]); in ccmp_gcmp_aad()
353 put_unaligned(mask_fc, (__le16 *)&aad[2]); in ccmp_gcmp_aad()
354 memcpy(&aad[4], &hdr->addrs, 3 * ETH_ALEN); in ccmp_gcmp_aad()
357 aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f; in ccmp_gcmp_aad()
358 aad[23] = 0; in ccmp_gcmp_aad()
361 memcpy(&aad[24], hdr->addr4, ETH_ALEN); in ccmp_gcmp_aad()
362 aad[30] = qos_tid; in ccmp_gcmp_aad()
363 aad[31] = 0; in ccmp_gcmp_aad()
365 memset(&aad[24], 0, ETH_ALEN + IEEE80211_QOS_CTL_LEN); in ccmp_gcmp_aad()
[all …]
Daes_ccm.h22 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_encrypt() argument
25 return aead_encrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_encrypt()
26 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_encrypt()
32 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_decrypt() argument
35 return aead_decrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_decrypt()
36 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_decrypt()
Daes_gcm.h14 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_encrypt() argument
17 return aead_encrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_encrypt()
18 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_encrypt()
23 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_decrypt() argument
26 return aead_decrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_decrypt()
27 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_decrypt()
Daes_cmac.c25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
35 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac()
36 fc = (const __le16 *)aad; in ieee80211_aes_cmac()
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
58 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256()
59 fc = (const __le16 *)aad; in ieee80211_aes_cmac_256()
Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument
33 memcpy(__aad, aad, aad_len); in aead_encrypt()
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument
68 memcpy(__aad, aad, aad_len); in aead_decrypt()
Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
36 memcpy(__aad, aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
38 fc = (const __le16 *)aad; in ieee80211_aes_gmac()
Daes_cmac.h14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
Daead_api.h13 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
17 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
/linux-6.1.9/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c89 u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument
134 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad()
135 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad()
136 memcpy(&aad[2], &hdr->addr1, ETH_ALEN); in ccmp_init_iv_and_aad()
137 memcpy(&aad[8], &hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad()
138 memcpy(&aad[14], &hdr->addr3, ETH_ALEN); in ccmp_init_iv_and_aad()
140 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad()
141 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad()
142 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad()
144 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad()
[all …]
/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c93 u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument
142 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad()
143 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad()
144 memcpy(&aad[2], &hdr->addr1, ETH_ALEN); in ccmp_init_iv_and_aad()
145 memcpy(&aad[8], &hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad()
146 memcpy(&aad[14], &hdr->addr3, ETH_ALEN); in ccmp_init_iv_and_aad()
148 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad()
149 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad()
150 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad()
152 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad()
[all …]
/linux-6.1.9/net/wireless/
Dlib80211_crypt_ccmp.c95 const u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument
137 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad()
138 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad()
139 memcpy(aad + 2, &hdr->addrs, 3 * ETH_ALEN); in ccmp_init_iv_and_aad()
141 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad()
142 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad()
143 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad()
145 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad()
147 aad[a4_included ? 28 : 22] = qc; in ccmp_init_iv_and_aad()
196 u8 *aad = key->tx_aad; in lib80211_ccmp_encrypt() local
[all …]
/linux-6.1.9/net/tls/
Dtls_device_fallback.c51 struct crypto_aead *aead, char *aad, in tls_enc_record() argument
90 tls_make_aad(aad, len - cipher_sz->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record()
96 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
97 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
154 struct scatterlist *sg_out, char *aad, char *iv, in tls_enc_records() argument
164 rc = tls_enc_record(aead_req, aead, aad, iv, in tls_enc_records()
332 void *buf, *iv, *aad, *dummy_buf, *salt; in tls_enc_skb() local
360 aad = buf + cipher_sz->salt + cipher_sz->iv; in tls_enc_skb()
361 dummy_buf = aad + TLS_AAD_SPACE_SIZE; in tls_enc_skb()
372 if (tls_enc_records(aead_req, ctx->aead_send, sg_in, sg_out, aad, iv, in tls_enc_skb()
/linux-6.1.9/drivers/clk/imx/
Dclk-imx35.c89 struct arm_ahb_div *aad; in _mx35_clocks_init() local
97 aad = &clk_consumer[consumer_sel]; in _mx35_clocks_init()
98 if (!aad->arm) { in _mx35_clocks_init()
104 aad = &clk_consumer[0]; in _mx35_clocks_init()
114 if (aad->sel) in _mx35_clocks_init()
115 clk[arm] = imx_clk_fixed_factor("arm", "mpll_075", 1, aad->arm); in _mx35_clocks_init()
117 clk[arm] = imx_clk_fixed_factor("arm", "mpll", 1, aad->arm); in _mx35_clocks_init()
132 clk[ahb] = imx_clk_fixed_factor("ahb", "arm", 1, aad->ahb); in _mx35_clocks_init()
/linux-6.1.9/security/apparmor/include/
Daudit.h157 #define aad(SA) ((SA)->apparmor_audit_data) macro
175 aad((SA))->error = (ERROR); \
177 aad((SA))->error; \
/linux-6.1.9/sound/soc/codecs/
Dda7219-aad.c35 da7219->aad->jack = jack; in da7219_aad_jack_det()
36 da7219->aad->jack_inserted = false; in da7219_aad_jack_det()
719 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_pdata()
842 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_suspend()
871 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_resume()
898 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_init()
938 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_exit()
967 da7219->aad = da7219_aad; in da7219_aad_probe()

12