Home
last modified time | relevance | path

Searched full:effective (Results 1 – 25 of 877) sorted by relevance

12345678910>>...36

/kernel/liteos_a/testsuites/unittest/security/capability/smoke/
Dcap_test_001.cpp73 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SETPCAP); in TestChild()
74 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SETUID); in TestChild()
75 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_KILL); in TestChild()
76 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SYS_TIME); in TestChild()
77 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SYS_NICE); in TestChild()
91 printf("e %d,p %d\n", capdatac[0].effective, capdatac[0].permitted); in TestChild()
99 printf("e %d,p %d\n", capdatac[0].effective, capdatac[0].permitted); in TestChild()
107 printf("e %d,p %d\n", capdatac[0].effective, capdatac[0].permitted); in TestChild()
115 printf("e %d,p %d\n", capdatac[0].effective, capdatac[0].permitted); in TestChild()
128 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective &= ~CAP_TO_MASK(CAP_KILL); in TestChild()
[all …]
/kernel/linux/linux-4.19/security/
Dcommoncap.c50 " effective capabilities. Therefore not raising all" in warn_setuid_and_fcaps_mixed()
57 * cap_capable - Determine whether a task has a particular effective capability
64 * its effective set, returning 0 if it does, -ve if it does not.
198 * @effective: The place to record the effective set
205 int cap_capget(struct task_struct *target, kernel_cap_t *effective, in cap_capget() argument
213 *effective = cred->cap_effective; in cap_capget()
239 * @effective: A pointer to the proposed new effective capabilities set
249 const kernel_cap_t *effective, in cap_capset() argument
271 if (!cap_issubset(*effective, *permitted)) in cap_capset()
274 new->cap_effective = *effective; in cap_capset()
[all …]
/kernel/linux/linux-5.10/security/
Dcommoncap.c44 " effective capabilities. Therefore not raising all" in warn_setuid_and_fcaps_mixed()
51 * cap_capable - Determine whether a task has a particular effective capability
58 * its effective set, returning 0 if it does, -ve if it does not.
192 * @effective: The place to record the effective set
199 int cap_capget(struct task_struct *target, kernel_cap_t *effective, in cap_capget() argument
207 *effective = cred->cap_effective; in cap_capget()
233 * @effective: A pointer to the proposed new effective capabilities set
243 const kernel_cap_t *effective, in cap_capset() argument
265 if (!cap_issubset(*effective, *permitted)) in cap_capset()
268 new->cap_effective = *effective; in cap_capset()
[all …]
/kernel/linux/linux-4.19/kernel/bpf/
Dcgroup.c42 bpf_prog_array_free(cgrp->bpf.effective[type]); in cgroup_bpf_put()
90 /* compute a chain of effective programs for a given cgroup:
105 /* count number of effective programs by walking parents */ in compute_effective_progs()
116 /* populate the array with effective progs */ in compute_effective_progs()
143 old_array = xchg(&cgrp->bpf.effective[type], array); in activate_effective_progs()
151 * cgroup_bpf_inherit() - inherit effective programs from parent
159 #define NR ARRAY_SIZE(cgrp->bpf.effective) in cgroup_bpf_inherit()
186 /* allocate and recompute effective prog arrays */ in update_effective_progs()
206 /* oom while computing effective. Free all computed effective arrays in update_effective_progs()
366 * recomputing effective in __cgroup_bpf_detach()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/
Dia_css_s3a_types.h78 in table, which cells have effective
82 in table, which cells have effective
112 * Condition of effective pixel for AWB level gate check:
170 s32 awb_cnt; /** Number of effective pixels
173 judged as "effective". (u32) */
175 All Gr pixels (not only for effective pixels)
178 All R pixels (not only for effective pixels)
181 All B pixels (not only for effective pixels)
184 All Gb pixels (not only for effective pixels)
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst23 | **bpftool** **cgroup** { **show** | **list** } *CGROUP* [**effective**]
24 | **bpftool** **cgroup tree** [*CGROUP_ROOT*] [**effective**]
39 **bpftool cgroup { show | list }** *CGROUP* [**effective**]
45 If **effective** is specified retrieve effective programs that
49 **bpftool cgroup tree** [*CGROUP_ROOT*] [**effective**]
58 If **effective** is specified retrieve effective programs that
/kernel/linux/linux-5.10/kernel/power/
Dqos.c13 * aggregated as appropriate to produce effective constraints (target values)
50 * pm_qos_read_value - Return the current effective constraint value.
258 * a new entry to the CPU latency QoS list and recompute the effective QoS
287 * latency QoS list along with updating the effective constraint value for that
314 * QoS list along with updating the effective constraint value for that list.
521 * Insert a new entry into the @qos list of requests, recompute the effective
525 * Return 1 if the effective constraint value has changed, 0 if the effective
558 * Update an existing frequency QoS request along with the effective constraint
561 * Return 1 if the effective constraint value has changed, 0 if the effective
585 * belongs to and recompute the effective constraint value for that list.
[all …]
/kernel/linux/linux-4.19/arch/x86/lib/
Dinsn-eval.c546 * computing the effective address. Thus, ensure that the first in get_reg_offset_16()
855 * get_eff_addr_reg() - Obtain effective address from register operand
858 * @regoff: Obtained operand offset, in pt_regs, with the effective address
859 * @eff_addr: Obtained effective address
861 * Obtain the effective address stored in the register operand as indicated by
863 * (i.e., ModRM.mod is 3). The effective address is saved in @eff_addr. The
871 * 0 on success. @eff_addr will have the effective address stored in the
904 * get_eff_addr_modrm() - Obtain referenced effective address via ModRM
908 * @eff_addr: Obtained effective address
910 * Obtain the effective address referenced by the ModRM byte of @insn. After
[all …]
/kernel/linux/linux-5.10/kernel/bpf/
Dcgroup.c134 cgrp->bpf.effective[type], in cgroup_bpf_release()
221 /* compute a chain of effective programs for a given cgroup:
237 /* count number of effective programs by walking parents */ in compute_effective_progs()
248 /* populate the array with effective progs */ in compute_effective_progs()
275 old_array = rcu_replace_pointer(cgrp->bpf.effective[type], old_array, in activate_effective_progs()
284 * cgroup_bpf_inherit() - inherit effective programs from parent
292 #define NR ARRAY_SIZE(cgrp->bpf.effective) in cgroup_bpf_inherit()
336 /* allocate and recompute effective prog arrays */ in update_effective_progs()
367 /* oom while computing effective. Free all computed effective arrays in update_effective_progs()
519 /* Swap updated BPF program for given link in effective program arrays across
[all …]
/kernel/linux/linux-5.10/arch/x86/lib/
Dinsn-eval.c578 * computing the effective address. Thus, ensure that the first in get_reg_offset_16()
906 * get_eff_addr_reg() - Obtain effective address from register operand
909 * @regoff: Obtained operand offset, in pt_regs, with the effective address
910 * @eff_addr: Obtained effective address
912 * Obtain the effective address stored in the register operand as indicated by
914 * (i.e., ModRM.mod is 3). The effective address is saved in @eff_addr. The
922 * 0 on success. @eff_addr will have the effective address stored in the
955 * get_eff_addr_modrm() - Obtain referenced effective address via ModRM
959 * @eff_addr: Obtained effective address
961 * Obtain the effective address referenced by the ModRM byte of @insn. After
[all …]
/kernel/linux/linux-4.19/kernel/
Dcapability.c145 * @dataptr: pointer to struct that contains the effective, permitted,
173 kdata[i].effective = pE.cap[i]; in SYSCALL_DEFINE2()
210 * @data: pointer to struct that contains the effective, permitted,
228 kernel_cap_t inheritable, permitted, effective; in SYSCALL_DEFINE2() local
252 effective.cap[i] = kdata[i].effective; in SYSCALL_DEFINE2()
257 effective.cap[i] = 0; in SYSCALL_DEFINE2()
263 effective.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; in SYSCALL_DEFINE2()
272 &effective, &inheritable, &permitted); in SYSCALL_DEFINE2()
/kernel/linux/linux-5.10/kernel/
Dcapability.c143 * @dataptr: pointer to struct that contains the effective, permitted,
171 kdata[i].effective = pE.cap[i]; in SYSCALL_DEFINE2()
208 * @data: pointer to struct that contains the effective, permitted,
226 kernel_cap_t inheritable, permitted, effective; in SYSCALL_DEFINE2() local
250 effective.cap[i] = kdata[i].effective; in SYSCALL_DEFINE2()
255 effective.cap[i] = 0; in SYSCALL_DEFINE2()
261 effective.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; in SYSCALL_DEFINE2()
270 &effective, &inheritable, &permitted); in SYSCALL_DEFINE2()
/kernel/linux/linux-4.19/include/uapi/linux/
Dsecurebits.h15 compatibility mode. We raise the effective and inheritable bitmasks
16 *of the executable file* if the effective uid of the new process is
17 0. If the real uid is 0, we raise the effective (legacy) bit of the
Dauxvec.h21 #define AT_EUID 12 /* effective uid */
23 #define AT_EGID 14 /* effective gid */
/kernel/linux/linux-5.10/include/uapi/linux/
Dsecurebits.h15 compatibility mode. We raise the effective and inheritable bitmasks
16 *of the executable file* if the effective uid of the new process is
17 0. If the real uid is 0, we raise the effective (legacy) bit of the
Dauxvec.h21 #define AT_EUID 12 /* effective uid */
23 #define AT_EGID 14 /* effective gid */
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/sdis/common/
Dia_css_sdis_common_types.h55 in table, which cells have effective
65 in table, which cells have effective
83 in table, which cells have effective
93 in table, which cells have effective
/kernel/linux/linux-4.19/Documentation/security/
Dcredentials.rst137 - Effective, Saved and FS User ID
138 - Effective, Saved and FS Group ID
150 - Set of effective capabilities
160 itself to its effective or permitted sets through ``capset()``. This
163 The effective capabilities are the ones that a task is actually allowed to
321 uid_t current_euid(void) Current's effective UID
322 gid_t current_egid(void) Current's effective GID
325 kernel_cap_t current_cap(void) Current's effective capabilities
401 uid_t task_euid(task) Task's effective UID
/kernel/linux/linux-5.10/Documentation/security/
Dcredentials.rst137 - Effective, Saved and FS User ID
138 - Effective, Saved and FS Group ID
150 - Set of effective capabilities
160 itself to its effective or permitted sets through ``capset()``. This
163 The effective capabilities are the ones that a task is actually allowed to
321 uid_t current_euid(void) Current's effective UID
322 gid_t current_egid(void) Current's effective GID
325 kernel_cap_t current_cap(void) Current's effective capabilities
400 uid_t task_euid(task) Task's effective UID
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dcgroup.c179 if (is_prefix(*argv, "effective")) { in do_show()
187 p_err("expected no more arguments, 'effective', got: '%s'?", in do_show()
336 if (is_prefix(*argv, "effective")) { in do_show_tree()
344 p_err("expected no more arguments, 'effective', got: '%s'?", in do_show_tree()
495 "Usage: %1$s %2$s { show | list } CGROUP [**effective**]\n" in do_help()
496 " %1$s %2$s tree [CGROUP_ROOT] [**effective**]\n" in do_help()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dpage.h183 * __va(x) = (x) - [ PHYSICAL_START - Effective KERNELBASE ]
187 * Effective KERNELBASE = virtual_base =
194 * virt_phys_offset = Effective KERNELBASE - PHYSICAL_START
200 * __va(x) = x - PHYSICAL_START + Effective KERNELBASE
204 * __pa(x) = x + PHYSICAL_START - Effective KERNELBASE
/kernel/linux/linux-4.19/include/linux/
Dpage_counter.h16 /* effective memory.min and memory.min usage tracking */
21 /* effective memory.low and memory.low usage tracking */
/kernel/linux/linux-5.10/Documentation/admin-guide/cgroup-v1/
Dfreezer-subsystem.rst66 When read, returns the effective state of the cgroup - "THAWED",
82 THAWED. Note that the effective state may not change to THAWED if
83 the parent-state is still freezing. If a cgroup's effective state
/kernel/linux/linux-4.19/Documentation/cgroup-v1/
Dfreezer-subsystem.txt62 When read, returns the effective state of the cgroup - "THAWED",
78 THAWED. Note that the effective state may not change to THAWED if
79 the parent-state is still freezing. If a cgroup's effective state
/kernel/linux/linux-5.10/include/linux/
Dpage_counter.h17 /* effective memory.min and memory.min usage tracking */
22 /* effective memory.low and memory.low usage tracking */

12345678910>>...36