| /linux/security/apparmor/ |
| H A D | label.c | 5 * This file contains AppArmor label definitions 16 #include "include/label.h" 27 * code - will take a ref count on a label if it needs the label 29 * profiles - each profile is a label 30 * secids - a pinned secid will keep a refcount of the label it is 34 * Labels are not ref counted by the label set, so they maybe removed and 45 /* p->label will not updated any more as p is dead */ in free_proxy() 46 aa_put_label(rcu_dereference_protected(proxy->label, true)); in free_proxy() 48 RCU_INIT_POINTER(proxy->label, (struc in free_proxy() 61 aa_alloc_proxy(struct aa_label * label,gfp_t gfp) aa_alloc_proxy() argument 324 aa_label_destroy(struct aa_label * label) aa_label_destroy() argument 351 aa_label_free(struct aa_label * label) aa_label_free() argument 360 label_free_switch(struct aa_label * label) label_free_switch() argument 372 struct aa_label *label = container_of(head, struct aa_label, rcu); label_free_rcu() local 381 struct aa_label *label = container_of(kref, struct aa_label, aa_label_kref() local 400 label_free_or_put_new(struct aa_label * label,struct aa_label * new) label_free_or_put_new() argument 409 aa_label_init(struct aa_label * label,int size,gfp_t gfp) aa_label_init() argument 488 aa_label_next_confined(const struct aa_label * label,int i) aa_label_next_confined() argument 605 __label_remove(struct aa_label * label,struct aa_label * new) __label_remove() argument 679 __label_insert(struct aa_labelset * ls,struct aa_label * label,bool replace) __label_insert() argument 771 __label_find(struct aa_label * label) __label_find() argument 786 aa_label_remove(struct aa_label * label) aa_label_remove() argument 889 struct aa_label *label; vec_find() local 908 struct aa_label *label = NULL; vec_create_and_insert_label() local 942 struct aa_label *label = vec_find(vec, len); aa_vec_find_or_create_label() local 961 aa_label_insert(struct aa_labelset * ls,struct aa_label * label) aa_label_insert() argument 1086 struct aa_label *label; label_merge_insert() local 1217 struct aa_label *label; aa_label_find_merge() local 1252 struct aa_label *label = NULL; aa_label_merge() local 1331 label_compound_match(const struct aa_profile * profile,struct aa_ruleset * rules,struct aa_label * label,aa_state_t state,bool inview,u32 request,struct aa_perms * perms) label_compound_match() argument 1387 label_components_match(const struct aa_profile * profile,struct aa_ruleset * rules,struct aa_label * label,aa_state_t start,bool inview,u32 request,struct aa_perms * perms) label_components_match() argument 1445 aa_label_match(const struct aa_profile * profile,struct aa_ruleset * rules,struct aa_label * label,aa_state_t state,bool inview,u32 request,struct aa_perms * perms) aa_label_match() argument 1471 aa_update_label_name(struct aa_ns * ns,struct aa_label * label,gfp_t gfp) aa_update_label_name() argument 1503 use_label_hname(struct aa_ns * ns,struct aa_label * label,int flags) use_label_hname() argument 1580 label_modename(struct aa_ns * ns,struct aa_label * label,int flags) label_modename() argument 1613 display_mode(struct aa_ns * ns,struct aa_label * label,int flags) display_mode() argument 1651 aa_label_snxprint(char * str,size_t size,struct aa_ns * ns,struct aa_label * label,int flags) aa_label_snxprint() argument 1714 aa_label_asxprint(char ** strp,struct aa_ns * ns,struct aa_label * label,int flags,gfp_t gfp) aa_label_asxprint() argument 1744 aa_label_acntsxprint(char __counted ** strp,struct aa_ns * ns,struct aa_label * label,int flags,gfp_t gfp) aa_label_acntsxprint() argument 1763 aa_label_xaudit(struct audit_buffer * ab,struct aa_ns * ns,struct aa_label * label,int flags,gfp_t gfp) aa_label_xaudit() argument 1790 aa_label_seq_xprint(struct seq_file * f,struct aa_ns * ns,struct aa_label * label,int flags,gfp_t gfp) aa_label_seq_xprint() argument 1813 aa_label_xprintk(struct aa_ns * ns,struct aa_label * label,int flags,gfp_t gfp) aa_label_xprintk() argument 1836 aa_label_printk(struct aa_label * label,gfp_t gfp) aa_label_printk() argument 1898 struct aa_label *label, *currbase = base; aa_label_strn_parse() local 2022 struct aa_label *label; labelset_next_stale() local 2058 __label_update(struct aa_label * label) __label_update() argument 2132 struct aa_label *label; __labelset_update() local [all...] |
| H A D | task.c | 26 * aa_get_task_label - Get another task's label 29 * Returns: counted reference to @task's label 43 * aa_replace_current_label - replace the current tasks label 44 * @label: new label (NOT NULL) 48 int aa_replace_current_label(struct aa_label *label) in aa_replace_current_label() argument 54 AA_BUG(!label); in aa_replace_current_label() 56 if (old == label) in aa_replace_current_label() 72 if (unconfined(label) || (labels_ns(old) != labels_ns(label))) in aa_replace_current_label() 74 * if switching to unconfined or a different label namespace in aa_replace_current_label() 80 * be careful switching cred label, when racing replacement it in aa_replace_current_label() [all …]
|
| H A D | af_unix.c | 22 #include "include/label.h" 35 struct aa_label *label, const struct path *path) in unix_fs_perm() argument 37 AA_BUG(!label); in unix_fs_perm() 40 if (unconfined(label) || !label_mediates(label, AA_CLASS_FILE)) in unix_fs_perm() 56 return aa_path_perm(op, subj_cred, label, path, in unix_fs_perm() 97 /* todo: local label matching */ in match_to_local() 100 *info = "failed local label match"; in match_to_local() 182 ad->peer = &peer->label; in match_label() 188 ad->info = "failed peer label matc in match_label() 430 aa_unix_create_perm(struct aa_label * label,int family,int type,int protocol) aa_unix_create_perm() argument 447 aa_unix_label_sk_perm(const struct cred * subj_cred,struct aa_label * label,const char * op,u32 request,struct sock * sk,const struct path * path) aa_unix_label_sk_perm() argument 465 struct aa_label *label; aa_unix_sock_perm() local 493 struct aa_label *label; aa_unix_bind_perm() local 533 struct aa_label *label; aa_unix_listen_perm() local 555 struct aa_label *label; aa_unix_accept_perm() local 589 struct aa_label *label; aa_unix_opt_perm() local 607 unix_peer_perm(const struct cred * subj_cred,struct aa_label * label,const char * op,u32 request,struct sock * sk,const struct path * path,struct sockaddr_un * peer_addr,int peer_addrlen,const struct path * peer_path,struct aa_label * peer_label) unix_peer_perm() argument 630 aa_unix_peer_perm(const struct cred * subj_cred,struct aa_label * label,const char * op,u32 request,struct sock * sk,struct sock * peer_sk,struct aa_label * peer_label) aa_unix_peer_perm() argument 652 update_sk_ctx(struct sock * sk,struct aa_label * label,struct aa_label * plabel) update_sk_ctx() argument 696 update_peer_ctx(struct sock * sk,struct aa_sk_ctx * ctx,struct aa_label * label) update_peer_ctx() argument 717 aa_unix_file_perm(const struct cred * subj_cred,struct aa_label * label,const char * op,u32 request,struct file * file) aa_unix_file_perm() argument [all...] |
| H A D | lsm.c | 43 #include "include/label.h" 95 * prepare new cred label for modification by prepare_cred block 170 struct aa_label *label; in apparmor_capget() 175 label = aa_get_newest_cred_label(cred); in apparmor_capget() 181 if (!unconfined(label)) { in apparmor_capget() 185 label_for_each_confined(i, label, profile) { in apparmor_capget() 194 aa_put_label(label); in apparmor_capget() 202 struct aa_label *label; in apparmor_capable() 205 label = aa_get_newest_cred_label(cred); in apparmor_capable() 206 if (!unconfined(label)) in apparmor_capable() 169 struct aa_label *label; apparmor_capget() local 201 struct aa_label *label; apparmor_capable() local 224 struct aa_label *label; common_perm() local 369 struct aa_label *label; apparmor_path_link() local 389 struct aa_label *label; apparmor_path_rename() local 467 struct aa_label *label; apparmor_file_open() local 512 struct aa_label *label = begin_current_label_crit_section(&needput); apparmor_file_alloc_security() local 530 struct aa_label *label; common_file_perm() local 665 struct aa_label *label; apparmor_uring_override_creds() local 690 struct aa_label *label; apparmor_uring_sqpoll() local 709 struct aa_label *label; apparmor_sb_mount() local 746 struct aa_label *label; apparmor_move_mount() local 761 struct aa_label *label; apparmor_sb_umount() local 776 struct aa_label *label; apparmor_sb_pivotroot() local 792 struct aa_label *label = NULL; apparmor_getselfattr() local 831 struct aa_label *label = NULL; apparmor_getprocattr() local 958 struct aa_label *label = aa_current_raw_label(); apparmor_bprm_committing_creds() local 988 struct aa_label *label; apparmor_current_getlsmprop_subj() local 999 struct aa_label *label = aa_get_task_label(p); apparmor_task_getlsmprop_obj() local 1008 struct aa_label *label; apparmor_task_setrlimit() local 1052 struct aa_label *label; apparmor_userns_create() local 1075 struct aa_label *label; apparmor_sk_alloc_security() local 1126 unix_connect_perm(const struct cred * cred,struct aa_label * label,struct sock * sk,struct sock * peer_sk) unix_connect_perm() argument 1155 struct aa_label *label = rcu_dereference_protected(sk_ctx->label, true); unix_connect_peers() local 1194 struct aa_label *label; apparmor_unix_stream_connect() local 1237 struct aa_label *label; apparmor_unix_may_send() local 1259 struct aa_label *label; apparmor_socket_create() local 1308 struct aa_label *label; apparmor_socket_post_create() local 1332 struct aa_label *label; apparmor_socket_socketpair() local 1582 struct aa_label *label; apparmor_socket_getpeersec_stream() local [all...] |
| H A D | domain.c | 98 struct aa_ruleset *rules = profile->label.rules[0]; in match_component() 115 * label_compound_match - find perms for full compound label 117 * @label: label to check access permissions for 126 * For the label A//&B//&C this does the perm match for A//&B//&C 131 struct aa_label *label, bool stack, in label_compound_match() argument 135 struct aa_ruleset *rules = profile->label.rules[0]; in label_compound_match() 141 label_for_each(i, label, tp) { in label_compound_match() 155 label_for_each_cont(i, label, tp) { in label_compound_match() 177 * label_components_match - find perms for all subcomponents of a label 179 * @label: label to check access permissions for [all …]
|
| /linux/tools/testing/selftests/powerpc/primitives/asm/ |
| H A D | feature-fixups.h | 31 #define START_FTR_SECTION(label) label##1: argument 33 #define FTR_SECTION_ELSE_NESTED(label) \ argument 34 label##2: \ 35 .pushsection __ftr_alt_##label,"a"; \ 37 label##3: 57 #define MAKE_FTR_SECTION_ENTRY(msk, val, label, sect) \ argument 58 label##4: \ 62 label##5: \ 65 FTR_ENTRY_OFFSET label## 74 BEGIN_FTR_SECTION_NESTED(label) global() argument 77 END_FTR_SECTION_NESTED(msk,val,label) global() argument 84 END_FTR_SECTION_NESTED_IFSET(msk,label) global() argument 92 ALT_FTR_SECTION_END_NESTED(msk,val,label) global() argument 94 ALT_FTR_SECTION_END_NESTED_IFSET(msk,label) global() argument 96 ALT_FTR_SECTION_END_NESTED_IFCLR(msk,label) global() argument 106 BEGIN_MMU_FTR_SECTION_NESTED(label) global() argument 109 END_MMU_FTR_SECTION_NESTED(msk,val,label) global() argument 116 END_MMU_FTR_SECTION_NESTED_IFSET(msk,label) global() argument 119 END_MMU_FTR_SECTION_NESTED_IFCLR(msk,label) global() argument 126 MMU_FTR_SECTION_ELSE_NESTED(label) global() argument 128 ALT_MMU_FTR_SECTION_END_NESTED(msk,val,label) global() argument 130 ALT_MMU_FTR_SECTION_END_NESTED_IFSET(msk,label) global() argument 132 ALT_MMU_FTR_SECTION_END_NESTED_IFCLR(msk,label) global() argument 142 BEGIN_FW_FTR_SECTION_NESTED(label) global() argument 145 END_FW_FTR_SECTION_NESTED(msk,val,label) global() argument 156 FW_FTR_SECTION_ELSE_NESTED(label) global() argument 158 ALT_FW_FTR_SECTION_END_NESTED(msk,val,label) global() argument 160 ALT_FW_FTR_SECTION_END_NESTED_IFSET(msk,label) global() argument 162 ALT_FW_FTR_SECTION_END_NESTED_IFCLR(msk,label) global() argument 202 START_LWSYNC_SECTION(label) global() argument 203 MAKE_LWSYNC_SECTION_ENTRY(label,sect) global() argument [all...] |
| /linux/arch/powerpc/include/asm/ |
| H A D | feature-fixups.h | 31 #define START_FTR_SECTION(label) label##1: argument 33 #define FTR_SECTION_ELSE_NESTED(label) \ argument 34 label##2: \ 35 .pushsection __ftr_alt_##label,"a"; \ 37 label##3: 57 #define MAKE_FTR_SECTION_ENTRY(msk, val, label, sect) \ argument 58 label##4: \ 62 label##5: \ 65 FTR_ENTRY_OFFSET label##1b-label##5b; \ 66 FTR_ENTRY_OFFSET label##2b-label##5b; \ [all …]
|
| /linux/security/apparmor/include/ |
| H A D | cred.h | 18 #include "label.h" 31 struct aa_label *label) in set_cred_label() argument 36 *blob = label; in set_cred_label() 40 * aa_get_newest_cred_label - obtain the newest label on a cred 41 * @cred: cred to obtain label from (NOT NULL) 43 * Returns: newest version of confining label 71 * aa_current_raw_label - find the current tasks confining label 73 * Returns: up to date confining label or the ns unconfined label (NOT NULL) 76 * of the label so it is safe to call when inside of locks. 84 * aa_get_current_label - get the newest version of the current tasks label [all …]
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlx-platform.c | 703 .label = "psu1", 709 .label = "psu2", 719 .label = "psu1", 725 .label = "psu2", 735 .label = "pdb1", 744 .label = "pwr1", 751 .label = "pwr2", 761 .label = "pwr1", 767 .label = "pwr2", 776 .label [all...] |
| /linux/Documentation/admin-guide/blockdev/drbd/ |
| H A D | drbd-connection-state-overview.dot | 9 StandAlone [ style=filled,fillcolor=gray,label=StandAlone ] 13 Unconnected [ label=Unconnected ] 16 label="{communication loss|{Timeout|BrokenPipe|NetworkFailure}}" ] 21 label="try to connect, handshake" 23 WFConnection [ label=WFConnection ] 24 WFReportParams [ label=WFReportParams ] 27 TearDown [ label=TearDown ] 29 Connected [ label=Connected,style=filled,fillcolor=green,fontcolor=black ] 33 StartingSyncS [ label=StartingSyncS ] 34 StartingSyncT [ label=StartingSyncT ] [all …]
|
| /linux/tools/verification/models/sched/ |
| H A D | sts.dot | 4 {node [shape = plaintext, style=invis, label=""] "__init_can_sched"}; 14 "can_sched" [label = "can_sched", color = green3]; 15 "can_sched" -> "cant_sched" [ label = "irq_disable" ]; 16 "can_sched" -> "scheduling" [ label = "schedule_entry" ]; 17 "cant_sched" [label = "cant_sched"]; 18 "cant_sched" -> "can_sched" [ label = "irq_enable" ]; 19 "cant_sched" -> "cant_sched" [ label = "irq_entry" ]; 20 "disable_to_switch" [label = "disable_to_switch"]; 21 "disable_to_switch" -> "enable_to_exit" [ label = "irq_enable" ]; 22 "disable_to_switch" -> "in_irq" [ label = "irq_entry" ]; [all …]
|
| H A D | opid.dot | 4 {node [shape = plaintext, style=invis, label=""] "__init_any"}; 7 "any" [label = "any", color = green3]; 8 "any" -> "any" [ label = "sched_need_resched;irq_off == 1\nsched_waking;irq_off == 1 && preempt_off == 1" ];
|
| /linux/Documentation/admin-guide/LSM/ |
| H A D | Smack.rst | 53 report if a process with one label has access 86 the label given to a new filesystem object will be the label 90 The Smack label of a process that execs a program file with 95 label does not allow all of the access permitted to a process 96 with the label contained in this attribute. This is a very 104 gets the label of the directory instead of the label of the 110 Use the Smack label in this attribute for access control 115 Use the Smack label in this attribute for access control 118 There are multiple ways to set a Smack label on a file:: 123 A process can see the Smack label it is running with by [all …]
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | s8001-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "cpm"; 41 label = "sio_busif"; 49 label = "sio_p"; 58 label = "sbr"; 67 label = "aic"; 76 label = "dwi"; 84 label = "gpio"; 92 label = "pcie_ref"; [all …]
|
| H A D | t8112-pmgr.dtsi | 15 label = "sbr"; 24 label = "aic"; 33 label = "dwi"; 42 label = "soc_spmi0"; 50 label = "gpio"; 58 label = "pms_busif"; 67 label = "pms"; 76 label = "pms_c1ppt"; 85 label = "soc_dpe"; 94 label = "pmgr_soc_ocla"; [all …]
|
| H A D | t8011-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "cpu2"; 41 label = "cpm"; 50 label = "sio_busif"; 58 label = "sio_p"; 67 label = "sbr"; 76 label = "aic"; 85 label = "dwi"; 93 label = "gpio"; [all …]
|
| H A D | s5l8960x-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "secuart0"; 41 label = "secuart1"; 50 label = "cpm"; 59 label = "lio"; 68 label = "iomux"; 77 label = "aic"; 86 label = "debug"; 94 label = "dwi"; [all …]
|
| H A D | t8012-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "cpm"; 41 label = "sio_busif"; 49 label = "sio_p"; 58 label = "iomux"; 66 label = "sbr"; 75 label = "aic"; 84 label = "gpio"; 92 label = "pcie_down_ref"; [all …]
|
| H A D | t8010-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "cpm"; 41 label = "sio_busif"; 49 label = "sio_p"; 58 label = "sbr"; 67 label = "aic"; 76 label = "dwi"; 84 label = "gpio"; 92 label = "pms"; [all …]
|
| H A D | t7001-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "cpu2"; 41 label = "cpm"; 50 label = "sio_p"; 58 label = "lio"; 67 label = "iomux"; 76 label = "aic"; 85 label = "debug"; 93 label = "dwi"; [all …]
|
| H A D | s800-0-3-pmgr.dtsi | 14 label = "cpu0"; 23 label = "cpu1"; 32 label = "cpm"; 41 label = "sio_busif"; 49 label = "sio_p"; 58 label = "sbr"; 67 label = "aic"; 76 label = "dwi"; 84 label = "gpio"; 92 label = "pms"; [all …]
|
| H A D | t7000-pmgr.dtsi | 13 label = "cpu0"; 22 label = "cpu1"; 31 label = "cpm"; 40 label = "sio_p"; 48 label = "lio"; 57 label = "iomux"; 66 label = "aic"; 75 label = "debug"; 83 label = "dwi"; 91 label = "gpio"; [all …]
|
| H A D | t600x-pmgr.dtsi | 14 label = DIE_LABEL(pms_bridge); 23 label = DIE_LABEL(aic); 32 label = DIE_LABEL(dwi); 41 label = DIE_LABEL(pms); 50 label = DIE_LABEL(gpio); 59 label = DIE_LABEL(soc_dpe); 68 label = DIE_LABEL(pmgr_soc_ocla); 77 label = DIE_LABEL(pcie0_ref); 85 label = DIE_LABEL(pcie1_ref); 93 label = DIE_LABEL(apcie_st); [all …]
|
| /linux/arch/arm64/boot/dts/amd/ |
| H A D | elba-flash-parts.dtsi | 12 label = "rsvd"; 18 label = "flash"; 23 label = "golduenv"; 28 label = "boot0"; 33 label = "golduboot"; 38 label = "brdcfg0"; 43 label = "brdcfg1"; 48 label = "goldfw"; 53 label = "fwmap"; 58 label = "fwsel"; [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | signal.h | 25 #define unsafe_get_user_sigset(dst, src, label) do { \ argument 31 unsafe_get_user(__dst->sig[i], &__src->sig[i], label); \ 48 #define unsafe_copy_fpr_to_user(to, task, label) do { \ argument 54 unsafe_put_user(__t->thread.TS_FPR(i), &buf[i], label); \ 55 unsafe_put_user(__t->thread.fp_state.fpscr, &buf[i], label); \ 58 #define unsafe_copy_vsx_to_user(to, task, label) do { \ argument 65 &buf[i], label);\ 68 #define unsafe_copy_fpr_from_user(task, from, label) do { \ argument 74 unsafe_get_user(__t->thread.TS_FPR(i), &buf[i], label); \ 75 unsafe_get_user(__t->thread.fp_state.fpscr, &buf[i], label); \ 78 unsafe_copy_vsx_from_user(task,from,label) global() argument 89 unsafe_copy_ckfpr_to_user(to,task,label) global() argument 99 unsafe_copy_ckvsx_to_user(to,task,label) global() argument 109 unsafe_copy_ckfpr_from_user(task,from,label) global() argument 119 unsafe_copy_ckvsx_from_user(task,from,label) global() argument 131 unsafe_copy_fpr_to_user(to,task,label) global() argument 135 unsafe_copy_fpr_from_user(task,from,label) global() argument 154 unsafe_copy_ckfpr_to_user(to,task,label) global() argument 172 unsafe_copy_fpr_to_user(to,task,label) global() argument 174 unsafe_copy_fpr_from_user(task,from,label) global() argument [all...] |