Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/Linux-v5.15/security/apparmor/
Dipc.c45 struct common_audit_data *sa = va; in audit_ptrace_cb() local
47 if (aad(sa)->request & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb()
49 audit_ptrace_mask(aad(sa)->request)); in audit_ptrace_cb()
51 if (aad(sa)->denied & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb()
53 audit_ptrace_mask(aad(sa)->denied)); in audit_ptrace_cb()
57 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_ptrace_cb()
65 struct common_audit_data *sa) in profile_ptrace_perm() argument
69 aad(sa)->peer = peer; in profile_ptrace_perm()
73 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm()
78 struct common_audit_data *sa) in profile_tracee_perm() argument
[all …]
Daudit.c57 struct common_audit_data *sa = ca; in audit_pre() local
61 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()
[all …]
Dnet.c73 struct common_audit_data *sa = va; in audit_net_cb() local
75 if (address_family_names[sa->u.net->family]) in audit_net_cb()
77 address_family_names[sa->u.net->family]); in audit_net_cb()
80 sa->u.net->family); in audit_net_cb()
81 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()
[all …]
Dfile.c46 struct common_audit_data *sa = va; in file_audit_cb() local
50 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()
[all …]
Dcapability.c46 struct common_audit_data *sa = va; in audit_cb() local
49 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); in audit_cb()
64 static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile, in audit_caps() argument
70 aad(sa)->error = error; in audit_caps()
102 return aa_audit(type, profile, sa, audit_cb); in audit_caps()
115 unsigned int opts, struct common_audit_data *sa) in profile_capable() argument
131 aad(sa)->info = "optional: no audit"; in profile_capable()
134 return audit_caps(sa, profile, cap, error); in profile_capable()
151 DEFINE_AUDIT_DATA(sa, LSM_AUDIT_DATA_CAP, OP_CAPABLE); in aa_capable()
153 sa.u.cap = cap; in aa_capable()
[all …]
Dresource.c32 struct common_audit_data *sa = va; in audit_cb() local
35 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()
56 DEFINE_AUDIT_DATA(sa, LSM_AUDIT_DATA_NONE, OP_SETRLIMIT); in audit_resource()
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()
[all …]
/Linux-v5.15/fs/xfs/scrub/
Dcommon.c407 struct xchk_ag *sa) in xchk_ag_read_headers() argument
412 ASSERT(!sa->pag); in xchk_ag_read_headers()
413 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers()
414 if (!sa->pag) in xchk_ag_read_headers()
417 error = xfs_ialloc_read_agi(mp, sc->tp, agno, &sa->agi_bp); in xchk_ag_read_headers()
421 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &sa->agf_bp); in xchk_ag_read_headers()
425 error = xfs_alloc_read_agfl(mp, sc->tp, agno, &sa->agfl_bp); in xchk_ag_read_headers()
435 struct xchk_ag *sa) in xchk_ag_btcur_free() argument
437 if (sa->refc_cur) in xchk_ag_btcur_free()
438 xfs_btree_del_cursor(sa->refc_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free()
[all …]
Dagheader.c39 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
374 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks()
378 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks()
381 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks()
383 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks()
386 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks()
394 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt()
400 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt()
404 error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); in xchk_agf_xref_cntbt()
405 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt()
[all …]
Drefcount.c287 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap()
297 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap()
299 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap()
304 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap()
379 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap()
383 error = xfs_btree_count_blocks(sc->sa.refc_cur, &refcbt_blocks); in xchk_refcount_xref_rmap()
384 if (!xchk_btree_process_error(sc, sc->sa.refc_cur, 0, &error)) in xchk_refcount_xref_rmap()
386 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_refcount_xref_rmap()
388 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcount_xref_rmap()
391 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap()
[all …]
/Linux-v5.15/arch/s390/kernel/
Dcrash_dump.c61 struct save_area *sa; in save_area_alloc() local
63 sa = (void *) memblock_phys_alloc(sizeof(*sa), 8); in save_area_alloc()
64 if (!sa) in save_area_alloc()
68 list_add(&sa->list, &dump_save_areas); in save_area_alloc()
70 list_add_tail(&sa->list, &dump_save_areas); in save_area_alloc()
71 return sa; in save_area_alloc()
85 void __init save_area_add_regs(struct save_area *sa, void *regs) in save_area_add_regs() argument
90 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw)); in save_area_add_regs()
91 memcpy(&sa->ctrs, &lc->cregs_save_area, sizeof(sa->ctrs)); in save_area_add_regs()
92 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs)); in save_area_add_regs()
[all …]
/Linux-v5.15/drivers/crypto/amcc/
Dcrypto4xx_alg.c30 static void set_dynamic_sa_command_0(struct dynamic_sa_ctl *sa, u32 save_h, in set_dynamic_sa_command_0() argument
35 sa->sa_command_0.w = 0; in set_dynamic_sa_command_0()
36 sa->sa_command_0.bf.save_hash_state = save_h; in set_dynamic_sa_command_0()
37 sa->sa_command_0.bf.save_iv = save_iv; in set_dynamic_sa_command_0()
38 sa->sa_command_0.bf.load_hash_state = ld_h; in set_dynamic_sa_command_0()
39 sa->sa_command_0.bf.load_iv = ld_iv; in set_dynamic_sa_command_0()
40 sa->sa_command_0.bf.hdr_proc = hdr_proc; in set_dynamic_sa_command_0()
41 sa->sa_command_0.bf.hash_alg = h; in set_dynamic_sa_command_0()
42 sa->sa_command_0.bf.cipher_alg = c; in set_dynamic_sa_command_0()
43 sa->sa_command_0.bf.pad_type = pad_type & 3; in set_dynamic_sa_command_0()
[all …]
/Linux-v5.15/kernel/sched/
Dpelt.c106 accumulate_sum(u64 delta, struct sched_avg *sa, in accumulate_sum() argument
112 delta += sa->period_contrib; in accumulate_sum()
119 sa->load_sum = decay_load(sa->load_sum, periods); in accumulate_sum()
120 sa->runnable_sum = in accumulate_sum()
121 decay_load(sa->runnable_sum, periods); in accumulate_sum()
122 sa->util_sum = decay_load((u64)(sa->util_sum), periods); in accumulate_sum()
140 1024 - sa->period_contrib, delta); in accumulate_sum()
143 sa->period_contrib = delta; in accumulate_sum()
146 sa->load_sum += load * contrib; in accumulate_sum()
148 sa->runnable_sum += runnable * contrib << SCHED_CAPACITY_SHIFT; in accumulate_sum()
[all …]
/Linux-v5.15/tools/testing/selftests/x86/
Dsigaltstack.c33 struct sigaction sa; in sethandler() local
35 memset(&sa, 0, sizeof(sa)); in sethandler()
36 sa.sa_sigaction = handler; in sethandler()
37 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
38 sigemptyset(&sa.sa_mask); in sethandler()
39 if (sigaction(sig, &sa, 0)) in sethandler()
45 struct sigaction sa; in clearhandler() local
47 memset(&sa, 0, sizeof(sa)); in clearhandler()
48 sa.sa_handler = SIG_DFL; in clearhandler()
49 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
Dioperm.c28 struct sigaction sa; in sethandler() local
29 memset(&sa, 0, sizeof(sa)); in sethandler()
30 sa.sa_sigaction = handler; in sethandler()
31 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
32 sigemptyset(&sa.sa_mask); in sethandler()
33 if (sigaction(sig, &sa, 0)) in sethandler()
40 struct sigaction sa; in clearhandler() local
41 memset(&sa, 0, sizeof(sa)); in clearhandler()
42 sa.sa_handler = SIG_DFL; in clearhandler()
43 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
Dvdso_restorer.c48 struct real_sigaction sa; in main() local
60 memset(&sa, 0, sizeof(sa)); in main()
61 sa.handler = handler_with_siginfo; in main()
62 sa.flags = SA_SIGINFO; in main()
63 sa.restorer = NULL; /* request kernel-provided restorer */ in main()
67 if (syscall(SYS_rt_sigaction, SIGUSR1, &sa, NULL, 8) != 0) in main()
81 sa.flags = 0; in main()
82 sa.handler = handler_without_siginfo; in main()
83 if (syscall(SYS_sigaction, SIGUSR1, &sa, 0) != 0) in main()
Diopl.c28 struct sigaction sa; in sethandler() local
29 memset(&sa, 0, sizeof(sa)); in sethandler()
30 sa.sa_sigaction = handler; in sethandler()
31 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
32 sigemptyset(&sa.sa_mask); in sethandler()
33 if (sigaction(sig, &sa, 0)) in sethandler()
40 struct sigaction sa; in clearhandler() local
41 memset(&sa, 0, sizeof(sa)); in clearhandler()
42 sa.sa_handler = SIG_DFL; in clearhandler()
43 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
Dsysret_rip.c45 struct sigaction sa; in sethandler() local
46 memset(&sa, 0, sizeof(sa)); in sethandler()
47 sa.sa_sigaction = handler; in sethandler()
48 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
49 sigemptyset(&sa.sa_mask); in sethandler()
50 if (sigaction(sig, &sa, 0)) in sethandler()
56 struct sigaction sa; in clearhandler() local
57 memset(&sa, 0, sizeof(sa)); in clearhandler()
58 sa.sa_handler = SIG_DFL; in clearhandler()
59 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
Dsingle_step_syscall.c39 struct sigaction sa; in sethandler() local
40 memset(&sa, 0, sizeof(sa)); in sethandler()
41 sa.sa_sigaction = handler; in sethandler()
42 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
43 sigemptyset(&sa.sa_mask); in sethandler()
44 if (sigaction(sig, &sa, 0)) in sethandler()
50 struct sigaction sa; in clearhandler() local
51 memset(&sa, 0, sizeof(sa)); in clearhandler()
52 sa.sa_handler = SIG_DFL; in clearhandler()
53 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
/Linux-v5.15/include/net/phonet/
Dphonet.h38 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa);
68 void pn_skb_get_src_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_src_sockaddr() argument
73 sa->spn_family = AF_PHONET; in pn_skb_get_src_sockaddr()
74 pn_sockaddr_set_object(sa, obj); in pn_skb_get_src_sockaddr()
75 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_src_sockaddr()
76 memset(sa->spn_zero, 0, sizeof(sa->spn_zero)); in pn_skb_get_src_sockaddr()
80 void pn_skb_get_dst_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_dst_sockaddr() argument
85 sa->spn_family = AF_PHONET; in pn_skb_get_dst_sockaddr()
86 pn_sockaddr_set_object(sa, obj); in pn_skb_get_dst_sockaddr()
87 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_dst_sockaddr()
[all …]
/Linux-v5.15/tools/perf/trace/beauty/
Dsockaddr.c13 static size_t af_inet__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet__scnprintf() argument
15 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in af_inet__scnprintf()
21 static size_t af_inet6__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet6__scnprintf() argument
23 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in af_inet6__scnprintf()
36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf() argument
38 struct sockaddr_un *sun = (struct sockaddr_un *)sa; in af_local__scnprintf()
42 static size_t (*af_scnprintfs[])(struct sockaddr *sa, char *bf, size_t size) = {
50 struct sockaddr *sa = (struct sockaddr *)arg->augmented.args; in syscall_arg__scnprintf_augmented_sockaddr() local
54 …(&strarray__socket_families, family, sizeof(family), "%d", arg->show_string_prefix, sa->sa_family); in syscall_arg__scnprintf_augmented_sockaddr()
57 if (sa->sa_family < ARRAY_SIZE(af_scnprintfs) && af_scnprintfs[sa->sa_family]) in syscall_arg__scnprintf_augmented_sockaddr()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dconnect6_prog.c33 struct sockaddr_in6 sa; in connect_v6_prog() local
79 memset(&sa, 0, sizeof(sa)); in connect_v6_prog()
81 sa.sin6_family = AF_INET6; in connect_v6_prog()
82 sa.sin6_port = bpf_htons(0); in connect_v6_prog()
84 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()
85 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()
86 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()
87 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
89 if (bpf_bind(ctx, (struct sockaddr *)&sa, sizeof(sa)) != 0) in connect_v6_prog()
/Linux-v5.15/drivers/net/netdevsim/
Dipsec.c37 struct nsim_sa *sap = &ipsec->sa[i]; in nsim_dbg_netdev_ops_read()
77 if (!ipsec->sa[i].used) in nsim_ipsec_find_empty_idx()
133 struct nsim_sa sa; in nsim_ipsec_add_sa() local
160 memset(&sa, 0, sizeof(sa)); in nsim_ipsec_add_sa()
161 sa.used = true; in nsim_ipsec_add_sa()
162 sa.xs = xs; in nsim_ipsec_add_sa()
164 if (sa.xs->id.proto & IPPROTO_ESP) in nsim_ipsec_add_sa()
165 sa.crypt = xs->ealg || xs->aead; in nsim_ipsec_add_sa()
168 ret = nsim_ipsec_parse_proto_keys(xs, sa.key, &sa.salt); in nsim_ipsec_add_sa()
175 sa.rx = true; in nsim_ipsec_add_sa()
[all …]
/Linux-v5.15/drivers/input/serio/
Dioc3kbd.c127 struct serio *sk, *sa; in ioc3kbd_probe() local
146 sa = kzalloc(sizeof(*sa), GFP_KERNEL); in ioc3kbd_probe()
147 if (!sa) { in ioc3kbd_probe()
161 sa->id.type = SERIO_8042; in ioc3kbd_probe()
162 sa->write = ioc3aux_write; in ioc3kbd_probe()
163 sa->start = ioc3aux_start; in ioc3kbd_probe()
164 sa->stop = ioc3aux_stop; in ioc3kbd_probe()
165 snprintf(sa->name, sizeof(sa->name), "IOC3 auxiliary %d", pdev->id); in ioc3kbd_probe()
166 snprintf(sa->phys, sizeof(sa->phys), "ioc3/serio%daux", pdev->id); in ioc3kbd_probe()
167 sa->port_data = d; in ioc3kbd_probe()
[all …]
/Linux-v5.15/tools/firewire/
Dnosy-dump.c136 struct subaction *sa; in subaction_create() local
139 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create()
140 if (!sa) in subaction_create()
142 sa->ack = data[length / 4 - 1]; in subaction_create()
143 sa->length = length; in subaction_create()
144 memcpy(&sa->packet, data, length); in subaction_create()
146 return sa; in subaction_create()
150 subaction_destroy(struct subaction *sa) in subaction_destroy() argument
152 free(sa); in subaction_destroy()
188 struct subaction *sa; in link_transaction_destroy() local
[all …]
/Linux-v5.15/net/appletalk/
Daarp.c411 void aarp_proxy_remove(struct net_device *dev, struct atalk_addr *sa) in aarp_proxy_remove() argument
413 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_remove()
418 a = __aarp_find_entry(proxies[hash], dev, sa); in aarp_proxy_remove()
427 struct atalk_addr *sa) in __aarp_proxy_find() argument
429 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in __aarp_proxy_find()
430 struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); in __aarp_proxy_find()
432 return a ? sa : NULL; in __aarp_proxy_find()
442 struct sockaddr_at *sa = (struct sockaddr_at *)&atreq.ifr_addr; in aarp_send_probe_phase1() local
445 sa->sat_addr.s_node = iface->address.s_node; in aarp_send_probe_phase1()
446 sa->sat_addr.s_net = ntohs(iface->address.s_net); in aarp_send_probe_phase1()
[all …]

12345678910>>...19