Home
last modified time | relevance | path

Searched full:labels (Results 1 – 25 of 190) sorted by relevance

12345678

/linux/samples/seccomp/
H A Dbpf-helper.c19 int bpf_resolve_jumps(struct bpf_labels *labels, in bpf_resolve_jumps() argument
37 if (labels->labels[instr->k].location == 0xffffffff) { in bpf_resolve_jumps()
39 labels->labels[instr->k].label); in bpf_resolve_jumps()
42 instr->k = labels->labels[instr->k].location - in bpf_resolve_jumps()
48 if (labels->labels[instr->k].location != 0xffffffff) { in bpf_resolve_jumps()
50 labels->labels[instr->k].label); in bpf_resolve_jumps()
53 labels->labels[instr->k].location = offset; in bpf_resolve_jumps()
63 /* Simple lookup table for labels. */
64 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label) in seccomp_bpf_label() argument
66 struct __bpf_label *begin = labels->labels, *end; in seccomp_bpf_label()
[all …]
H A Dbpf-helper.h32 } labels[BPF_LABELS_MAX]; member
35 int bpf_resolve_jumps(struct bpf_labels *labels,
37 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label);
49 #define JUMP(labels, label) \ argument
50 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
52 #define LABEL(labels, label) \ argument
53 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
60 #define FIND_LABEL(labels, label) seccomp_bpf_label((labels), #label) argument
/linux/tools/testing/selftests/bpf/
H A Djit_disasm_helpers.c14 * programs written in BPF assembly, thus assume that 32 local labels
19 /* Local labels are encoded as 'L42', this requires 4 bytes of storage:
37 struct local_labels *labels = data; in lookup_symbol() local
45 /* Depending on labels->print_phase either discover local labels or in lookup_symbol()
47 * - if print_phase is true and ref_value is in labels->pcs, in lookup_symbol()
48 * return corresponding labels->name. in lookup_symbol()
50 * in labels->pcs; in lookup_symbol()
52 if (labels->print_phase) { in lookup_symbol()
53 for (i = 0; i < labels in lookup_symbol()
95 struct local_labels labels = {}; disasm_one_func() local
[all...]
/linux/net/netfilter/
H A Dxt_connlabel.c15 MODULE_DESCRIPTION("Xtables: add/match connection tracking labels");
24 struct nf_conn_labels *labels; in connlabel_mt() local
32 labels = nf_ct_labels_find(ct); in connlabel_mt()
33 if (!labels) in connlabel_mt()
36 if (test_bit(info->bit, labels->bits)) in connlabel_mt()
40 if (!test_and_set_bit(info->bit, labels->bits)) in connlabel_mt()
H A Dnf_conntrack_labels.c32 struct nf_conn_labels *labels; in nf_connlabels_replace() local
37 labels = nf_ct_labels_find(ct); in nf_connlabels_replace()
38 if (!labels) in nf_connlabels_replace()
41 size = sizeof(labels->bits); in nf_connlabels_replace()
45 dst = (u32 *) labels->bits; in nf_connlabels_replace()
/linux/fs/9p/
H A DKconfig36 bool "9P Security Labels"
39 Security labels support alternative access control models
42 labels in the 9P filesystem.
45 extended attributes for file security labels, say N.
/linux/fs/ceph/
H A DKconfig40 bool "CephFS Security Labels"
43 Security labels support alternative access control models
46 labels in the Ceph filesystem.
49 extended attributes for file security labels, say N.
/linux/fs/jfs/
H A DKconfig26 bool "JFS Security Labels"
29 Security labels support alternative access control models
32 labels in the jfs filesystem.
35 extended attributes for file security labels, say N.
/linux/Documentation/admin-guide/LSM/
H A DSmack.rst77 Smack uses extended attributes (xattrs) to store labels on filesystem
228 specify read and execute access. Labels are limited to 23
282 This contains labels processes must have for CAP_MAC_ADMIN
285 label. The values are set by writing the desired labels, separated
298 only allowed when subject's and object's labels are equal.
318 This interface contains a list of labels to which the process can
322 ``CAP_MAC_ADMIN`` to relabel itself to one of labels from predefined list.
325 The values are set by writing the desired labels, separated
435 on what subjects can access which objects, based on the labels attached to
438 Labels section in Smack Basics
[all …]
/linux/arch/mips/kvm/
H A Dentry.c237 struct uasm_label labels[2]; in kvm_mips_build_enter_guest() local
239 struct uasm_label __maybe_unused *l = labels; in kvm_mips_build_enter_guest()
242 memset(labels, 0, sizeof(labels)); in kvm_mips_build_enter_guest()
366 uasm_resolve_relocs(relocs, labels); in kvm_mips_build_enter_guest()
383 struct uasm_label labels[2]; in kvm_mips_build_tlb_refill_exception() local
386 struct uasm_label *l = labels; in kvm_mips_build_tlb_refill_exception()
390 memset(labels, 0, sizeof(labels)); in kvm_mips_build_tlb_refill_exception()
471 struct uasm_label labels[2]; in kvm_mips_build_exception() local
473 struct uasm_label *l = labels; in kvm_mips_build_exception()
476 memset(labels, 0, sizeof(labels)); in kvm_mips_build_exception()
[all …]
/linux/drivers/misc/lkdtm/
H A Dcfi.c115 /* Use calculated gotos to keep labels addressable. */ in lkdtm_CFI_BACKWARD()
116 void *labels[] = { NULL, &&normal, &&redirected, &&check_normal, &&check_redirected }; in lkdtm_CFI_BACKWARD() local
129 goto *labels[1]; in lkdtm_CFI_BACKWARD()
131 goto *labels[2]; in lkdtm_CFI_BACKWARD()
133 goto *labels[3]; in lkdtm_CFI_BACKWARD()
135 goto *labels[4]; in lkdtm_CFI_BACKWARD()
/linux/drivers/nvdimm/
H A Dlabel.c79 * enough to hold 2 index blocks and 2 labels. The minimum index in sizeof_namespace_index()
89 dev_err(ndd->dev, "label area (%d) too small to host (%d byte) labels\n", in sizeof_namespace_index()
98 * by an array of labels. None of these structures are ever in __nd_label_validate()
100 * active index and the next one to write, while labels are in __nd_label_validate()
244 * need to know the size of the labels, and we can't trust the in nd_label_validate()
245 * size of the labels until we validate the index blocks. in nd_label_validate()
247 * sizes, but default to v1.2 256-byte namespace labels if in nd_label_validate()
454 * we must read and validate before we can start processing labels. in nd_label_data_init()
456 * If the area is too small to contain the two indexes and 2 labels in nd_label_data_init()
499 /* Validate index data, if not valid assume all labels are invalid */ in nd_label_data_init()
[all …]
/linux/fs/ext4/
H A DKconfig57 bool "Ext4 Security Labels"
60 Security labels support alternative access control models
63 labels in the ext4 filesystem.
66 extended attributes for file security labels, say N.
/linux/net/openvswitch/
H A Dconntrack.c72 struct md_labels labels; member
105 static bool labels_nonzero(const struct ovs_key_ct_labels *labels);
163 /* Guard against conntrack labels max size shrinking below 128 bits. */
169 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument
179 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
181 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
205 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key()
305 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key()
306 &output->ct.labels)) in ovs_ct_put_key()
377 /* Initialize labels fo
382 ovs_ct_init_labels(struct nf_conn * ct,struct sw_flow_key * key,const struct ovs_key_ct_labels * labels,const struct ovs_key_ct_labels * mask) ovs_ct_init_labels() argument
423 ovs_ct_set_labels(struct nf_conn * ct,struct sw_flow_key * key,const struct ovs_key_ct_labels * labels,const struct ovs_key_ct_labels * mask) ovs_ct_set_labels() argument
860 labels_nonzero(const struct ovs_key_ct_labels * labels) labels_nonzero() argument
1291 struct md_labels *labels = nla_data(a); parse_ct() local
[all...]
/linux/sound/firewire/fireface/
H A Dff-proc.c12 static const char *const labels[] = { in snd_ff_proc_get_clk_label() local
21 if (src >= ARRAY_SIZE(labels)) in snd_ff_proc_get_clk_label()
24 return labels[src]; in snd_ff_proc_get_clk_label()
/linux/scripts/
H A DMakefile.propeller8 # Starting with Clang v20, the '-fbasic-block-sections=labels' option is
14 CFLAGS_PROPELLER_CLANG := -fbasic-block-sections=labels
34 KBUILD_LDFLAGS += --lto-basic-block-sections=labels
/linux/arch/mips/mm/
H A Dtlbex.c165 /* Handle labels (which must be positive integers). */
297 /* simply assume worst case size for labels and relocs */
298 static struct uasm_label labels[128]; variable
1247 struct uasm_label *l = labels; in build_r4000_tlb_refill_handler()
1255 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_refill_handler()
1334 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1349 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1361 for (i = 0; i < ARRAY_SIZE(labels) && labels[i].lab != ls; i++) in build_r4000_tlb_refill_handler()
1363 BUG_ON(i == ARRAY_SIZE(labels)); in build_r4000_tlb_refill_handler()
1364 split = labels[i].addr; in build_r4000_tlb_refill_handler()
[all …]
H A Dpage.c38 /* Handle labels (which must be positive integers). */
54 static struct uasm_label labels[5]; variable
268 struct uasm_label *l = labels; in build_clear_page()
277 memset(labels, 0, sizeof(labels)); in build_clear_page()
345 uasm_resolve_relocs(relocs, labels); in build_clear_page()
417 struct uasm_label *l = labels; in build_copy_page()
426 memset(labels, 0, sizeof(labels)); in build_copy_page()
591 uasm_resolve_relocs(relocs, labels); in build_copy_page()
/linux/Documentation/networking/
H A Dmpls-sysctl.rst13 greater than the number of platform labels.
16 is possible and expected as the platform labels are locally
32 the MPLS header on imposing labels and propagated from the
/linux/drivers/iio/multiplexer/
H A Diio-mux.c341 const char **labels; in mux_probe() local
365 labels = devm_kmalloc_array(dev, all_children, sizeof(*labels), GFP_KERNEL); in mux_probe()
366 if (!labels) in mux_probe()
369 ret = device_property_read_string_array(dev, "channels", labels, all_children); in mux_probe()
375 if (*labels[state]) in mux_probe()
432 if (!*labels[state]) in mux_probe()
435 ret = mux_configure_channel(dev, mux, state, labels[state], i++); in mux_probe()
/linux/sound/usb/
H A Dfcp.c39 * 7. Optionally add labels to the Level Meter control using
51 * Labels for the Level Meter channels can be set using
53 * control's TLV data. The labels are transferred as a sequence of
688 /* Set the Level Meter labels */
692 struct fcp_meter_labels labels; in fcp_ioctl_set_meter_labels() local
697 if (copy_from_user(&labels, arg, sizeof(labels))) in fcp_ioctl_set_meter_labels()
700 /* Remove existing labels if size is zero */ in fcp_ioctl_set_meter_labels()
701 if (!labels.labels_size) { in fcp_ioctl_set_meter_labels()
703 /* Clear TLV read/callback bits if labels wer in fcp_ioctl_set_meter_labels()
[all...]
/linux/fs/jffs2/
H A DKconfig88 bool "JFFS2 Security Labels"
92 Security labels support alternative access control models
95 labels in the jffs2 filesystem.
98 extended attributes for file security labels, say N.
/linux/fs/ubifs/
H A DKconfig77 bool "UBIFS Security Labels"
81 Security labels provide an access control facility to support Linux
84 security labels in the ubifs filesystem, so that it requires enabling
/linux/Documentation/netlabel/
H A Dlsm_interface.rst23 labels. The NetLabel security attributes are defined by the
34 These are the functions which allow the LSM developer to manipulate the labels
35 on outgoing packets as well as read the labels on incoming packets. Functions
/linux/Documentation/hwmon/
H A Dpowerz.rst26 The channel labels exposed via hwmon match the labels used by the on-device

12345678