/linux-6.3-rc2/security/apparmor/ |
A D | audit.c | 101 if (aad(sa)->op) { in audit_pre() 105 if (aad(sa)->class) in audit_pre() 111 if (aad(sa)->info) { in audit_pre() 113 if (aad(sa)->error) in audit_pre() 117 if (aad(sa)->label) { in audit_pre() 137 if (aad(sa)->name) { in audit_pre() 151 aad(sa)->type = type; in aa_audit_msg() 184 return aad(sa)->error; in aa_audit() 191 aa_audit_msg(type, sa, cb); in aa_audit() 195 sa->type == LSM_AUDIT_DATA_TASK && sa->u.tsk ? in aa_audit() [all …]
|
A D | ipc.c | 54 struct common_audit_data *sa = va; in audit_signal_cb() local 58 audit_signal_mask(aad(sa)->request)); in audit_signal_cb() 64 if (aad(sa)->signal == SIGUNKNOWN) in audit_signal_cb() 66 aad(sa)->unmappedsig); 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() 79 struct common_audit_data *sa) in profile_signal_perm() argument 90 aad(sa)->peer = peer; in profile_signal_perm() 94 aad(sa)->signal); in profile_signal_perm() 105 aad(&sa)->signal = map_signal_num(sig); in aa_may_signal() [all …]
|
A D | net.c | 73 struct common_audit_data *sa = va; in audit_net_cb() local 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() 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() 158 DEFINE_AUDIT_SK(sa, op, sk); in aa_label_sk_perm() 217 struct common_audit_data *sa) in aa_secmark_perm() argument 255 DEFINE_AUDIT_SK(sa, op, sk); in apparmor_secmark_check() [all …]
|
A D | task.c | 210 struct common_audit_data *sa = va; in audit_ptrace_cb() local 214 audit_ptrace_mask(aad(sa)->request)); 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() 230 struct common_audit_data *sa) in profile_ptrace_perm() argument 236 aad(sa)->peer = peer; in profile_ptrace_perm() 245 struct common_audit_data *sa) in profile_tracee_perm() argument 256 struct common_audit_data *sa) in profile_tracer_perm() argument 268 aad(sa)->label = &tracer->label; in profile_tracer_perm() 269 aad(sa)->peer = tracee; in profile_tracer_perm() [all …]
|
A D | lib.c | 148 aad(&sa)->info = str; in aa_info_message() 285 if (aad(sa)->request) { in aa_audit_perms_cb() 291 if (aad(sa)->denied) { in aa_audit_perms_cb() 298 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in aa_audit_perms_cb() 360 aad(sa)->request = request; in aa_profile_label_perm() 397 if (!request || !sa) in aa_check_perms() 416 if (!sa || !denied) in aa_check_perms() 420 if (sa) { in aa_check_perms() 422 aad(sa)->request = request; in aa_check_perms() 423 aad(sa)->denied = denied; in aa_check_perms() [all …]
|
A D | file.c | 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() 100 sa.u.tsk = NULL; in aa_audit_file() 102 aad(&sa)->name = name; in aa_audit_file() 104 aad(&sa)->peer = tlabel; in aa_audit_file() 106 aad(&sa)->info = info; in aa_audit_file() 107 aad(&sa)->error = error; in aa_audit_file() 108 sa.u.tsk = NULL; in aa_audit_file() 124 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file() 136 if (!aad(&sa)->request) in aa_audit_file() [all …]
|
A D | capability.c | 46 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 72 aad(sa)->error = error; in audit_caps() 104 return aa_audit(type, profile, sa, audit_cb); in audit_caps() 117 unsigned int opts, struct common_audit_data *sa) in profile_capable() argument 135 aad(sa)->info = "optional: no audit"; in profile_capable() 138 return audit_caps(sa, profile, cap, error); in profile_capable() 155 DEFINE_AUDIT_DATA(sa, LSM_AUDIT_DATA_CAP, AA_CLASS_CAP, OP_CAPABLE); in aa_capable() 157 sa.u.cap = cap; in aa_capable() [all …]
|
A D | resource.c | 32 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() 58 DEFINE_AUDIT_DATA(sa, LSM_AUDIT_DATA_NONE, AA_CLASS_RLIMITS, in audit_resource() 61 aad(&sa)->rlim.rlim = resource; in audit_resource() 62 aad(&sa)->rlim.max = value; in audit_resource() 63 aad(&sa)->peer = peer; in audit_resource() 64 aad(&sa)->info = info; in audit_resource() 65 aad(&sa)->error = error; in audit_resource() [all …]
|
/linux-6.3-rc2/fs/xfs/scrub/ |
A D | common.c | 416 if (!sa->pag) in xchk_ag_read_headers() 419 error = xfs_ialloc_read_agi(sa->pag, sc->tp, &sa->agi_bp); in xchk_ag_read_headers() 423 error = xfs_alloc_read_agf(sa->pag, sc->tp, 0, &sa->agf_bp); in xchk_ag_read_headers() 467 sa->bno_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 474 sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 481 sa->ino_cur = xfs_inobt_init_cursor(sa->pag, sc->tp, sa->agi_bp, in xchk_ag_btcur_init() 488 sa->fino_cur = xfs_inobt_init_cursor(sa->pag, sc->tp, sa->agi_bp, in xchk_ag_btcur_init() 495 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 496 sa->pag); in xchk_ag_btcur_init() 503 sa->agf_bp, sa->pag); in xchk_ag_btcur_init() [all …]
|
A D | agheader.c | 377 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks() 399 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt() 436 if (sc->sa.rmap_cur) { in xchk_agf_xref_btreeblks() 452 !sc->sa.bno_cur || !sc->sa.cnt_cur) in xchk_agf_xref_btreeblks() 479 if (!sc->sa.refc_cur) in xchk_agf_xref_refcblks() 540 pag = sc->sa.pag; in xchk_agf() 718 if (!sc->sa.agf_bp) in xchk_agfl() 789 if (!sc->sa.ino_cur) in xchk_agi_xref_icounts() 812 if (sc->sa.ino_cur) { in xchk_agi_xref_fiblocks() 820 if (sc->sa.fino_cur) { in xchk_agi_xref_fiblocks() [all …]
|
A D | refcount.c | 287 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap() 304 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap() 369 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap() 381 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap() 389 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap() 421 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_cow_staging() 430 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging() 438 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging() 444 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging() 448 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging() [all …]
|
A D | repair.c | 48 xchk_ag_btcur_free(&sc->sa); in xrep_attempt() 137 if (sc->sa.agi_bp) { in xrep_roll_ag_trans() 142 if (sc->sa.agf_bp) { in xrep_roll_ag_trans() 158 if (sc->sa.agi_bp) in xrep_roll_ag_trans() 160 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 313 sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 329 args.pag = sc->sa.pag; in xrep_alloc_ag_block() 498 args.pag = sc->sa.pag; in xrep_fix_freelist() 525 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xrep_put_freelist() 535 error = xfs_alloc_put_freelist(sc->sa.pag, sc->tp, sc->sa.agf_bp, in xrep_put_freelist() [all …]
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | crash_dump.c | 65 sa = memblock_alloc(sizeof(*sa), 8); in save_area_alloc() 66 if (!sa) in save_area_alloc() 73 return sa; in save_area_alloc() 92 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw)); in save_area_add_regs() 93 memcpy(&sa->ctrs, &lc->cregs_save_area, sizeof(sa->ctrs)); in save_area_add_regs() 94 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs)); in save_area_add_regs() 97 memcpy(&sa->fpc, &lc->fpt_creg_save_area, sizeof(sa->fpc)); in save_area_add_regs() 312 memcpy(&nt_fpregset.fpc, &sa->fpc, sizeof(sa->fpc)); in fill_cpu_elf_notes() 313 memcpy(&nt_fpregset.fprs, &sa->fprs, sizeof(sa->fprs)); in fill_cpu_elf_notes() 324 &sa->vxrs_high, sizeof(sa->vxrs_high)); in fill_cpu_elf_notes() [all …]
|
/linux-6.3-rc2/drivers/crypto/amcc/ |
A D | crypto4xx_alg.c | 35 sa->sa_command_0.w = 0; in set_dynamic_sa_command_0() 47 sa->sa_command_0.bf.dir = dir; in set_dynamic_sa_command_0() 55 sa->sa_command_1.w = 0; in set_dynamic_sa_command_1() 128 struct dynamic_sa_ctl *sa; in crypto4xx_setkey_aes() local 144 sa = ctx->sa_in; in crypto4xx_setkey_aes() 166 sa = ctx->sa_out; in crypto4xx_setkey_aes() 386 struct dynamic_sa_ctl *sa; in crypto4xx_setkey_aes_ccm() local 532 struct dynamic_sa_ctl *sa; in crypto4xx_setkey_aes_gcm() local 660 memset(sa->inner_digest, 0, sizeof(sa->inner_digest)); in crypto4xx_hash_alg_init() 661 memset(sa->outer_digest, 0, sizeof(sa->outer_digest)); in crypto4xx_hash_alg_init() [all …]
|
/linux-6.3-rc2/kernel/sched/ |
A D | pelt.c | 108 delta += sa->period_contrib; in accumulate_sum() 115 sa->load_sum = decay_load(sa->load_sum, periods); in accumulate_sum() 116 sa->runnable_sum = in accumulate_sum() 118 sa->util_sum = decay_load((u64)(sa->util_sum), periods); in accumulate_sum() 139 sa->period_contrib = delta; in accumulate_sum() 142 sa->load_sum += load * contrib; in accumulate_sum() 185 delta = now - sa->last_update_time; in ___update_load_sum() 191 sa->last_update_time = now; in ___update_load_sum() 264 sa->load_avg = div_u64(load * sa->load_sum, divider); in ___update_load_avg() 265 sa->runnable_avg = div_u64(sa->runnable_sum, divider); in ___update_load_avg() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/x86/ |
A D | sigaltstack.c | 33 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 …]
|
A D | ioperm.c | 28 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 …]
|
A D | vdso_restorer.c | 48 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()
|
A D | sysret_rip.c | 45 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 …]
|
A D | iopl.c | 28 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 …]
|
A D | single_step_syscall.c | 39 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-6.3-rc2/include/net/phonet/ |
A D | phonet.h | 42 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa); 72 void pn_skb_get_src_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_src_sockaddr() argument 77 sa->spn_family = AF_PHONET; in pn_skb_get_src_sockaddr() 78 pn_sockaddr_set_object(sa, obj); in pn_skb_get_src_sockaddr() 79 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_src_sockaddr() 80 memset(sa->spn_zero, 0, sizeof(sa->spn_zero)); in pn_skb_get_src_sockaddr() 84 void pn_skb_get_dst_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_dst_sockaddr() argument 89 sa->spn_family = AF_PHONET; in pn_skb_get_dst_sockaddr() 90 pn_sockaddr_set_object(sa, obj); in pn_skb_get_dst_sockaddr() 91 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_dst_sockaddr() [all …]
|
/linux-6.3-rc2/tools/perf/trace/beauty/ |
A D | sockaddr.c | 13 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-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | connect6_prog.c | 31 struct sockaddr_in6 sa; in connect_v6_prog() local 77 memset(&sa, 0, sizeof(sa)); in connect_v6_prog() 79 sa.sin6_family = AF_INET6; in connect_v6_prog() 80 sa.sin6_port = bpf_htons(0); in connect_v6_prog() 82 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog() 83 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog() 84 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog() 85 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog() 87 if (bpf_bind(ctx, (struct sockaddr *)&sa, sizeof(sa)) != 0) in connect_v6_prog()
|
/linux-6.3-rc2/drivers/net/netdevsim/ |
A D | ipsec.c | 77 if (!ipsec->sa[i].used) in nsim_ipsec_find_empty_idx() 134 struct nsim_sa sa; in nsim_ipsec_add_sa() local 165 memset(&sa, 0, sizeof(sa)); in nsim_ipsec_add_sa() 166 sa.used = true; in nsim_ipsec_add_sa() 167 sa.xs = xs; in nsim_ipsec_add_sa() 170 sa.crypt = xs->ealg || xs->aead; in nsim_ipsec_add_sa() 173 ret = nsim_ipsec_parse_proto_keys(xs, sa.key, &sa.salt); in nsim_ipsec_add_sa() 180 sa.rx = true; in nsim_ipsec_add_sa() 189 memcpy(&ipsec->sa[sa_idx], &sa, sizeof(sa)); in nsim_ipsec_add_sa() 207 if (!ipsec->sa[sa_idx].used) { in nsim_ipsec_del_sa() [all …]
|