Home
last modified time | relevance | path

Searched +full:current +full:- +full:path (Results 1 – 25 of 1110) sorted by relevance

12345678910>>...45

/linux/security/tomoyo/
H A Dtomoyo.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2005-2011 NTT DATA CORPORATION
13 * tomoyo_domain - Get "struct tomoyo_domain_info" for current thread.
15 * Returns pointer to "struct tomoyo_domain_info" for current thread.
19 struct tomoyo_task *s = tomoyo_task(current); in tomoyo_domain()
21 if (s->old_domain_info && !current->in_execve) { in tomoyo_domain()
22 atomic_dec(&s->old_domain_info->users); in tomoyo_domain()
23 s->old_domain_info = NULL; in tomoyo_domain()
25 return s->domain_info; in tomoyo_domain()
29 * tomoyo_cred_prepare - Target for security_prepare_creds().
[all …]
/linux/include/linux/
H A Dnsfs.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 struct path;
15 int ns_get_path(struct path *path, struct task_struct *task,
18 int ns_get_path_cb(struct path *path, ns_get_path_helper_t ns_get_cb,
29 struct cgroup_namespace *: current->nsproxy->cgroup_ns, \
30 struct ipc_namespace *: current->nsproxy->ipc_ns, \
31 struct net *: current->nsproxy->net_ns, \
32 struct pid_namespace *: task_active_pid_ns(current), \
33 struct mnt_namespace *: current->nsproxy->mnt_ns, \
34 struct time_namespace *: current->nsproxy->time_ns, \
[all …]
/linux/tools/testing/selftests/cgroup/
H A Dtest_hugetlb_memcg.c1 // SPDX-License-Identifier: GPL-2.0
19 /* borrowed from mm/hmm-tests.c */
25 char *p, *q, *path = "/proc/meminfo", *tag = "Hugepagesize:"; in get_hugepage_size() local
28 fd = open(path, O_RDONLY); in get_hugepage_size()
31 return -1; in get_hugepage_size()
38 return -1; in get_hugepage_size()
42 return -1; in get_hugepage_size()
50 return -1; /* looks like the line we want isn't there */ in get_hugepage_size()
58 return -1; in get_hugepage_size()
64 static int set_file(const char *path, long value) in set_file() argument
[all …]
/linux/security/apparmor/
H A Dtask.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include "include/path.h"
26 * aa_get_task_label - Get another task's label
43 * aa_replace_current_label - replace the current tasks label
51 struct aa_task_ctx *ctx = task_ctx(current); in aa_replace_current_label()
60 return -EBUSY; in aa_replace_current_label()
64 return -ENOMEM; in aa_replace_current_label()
66 if (ctx->nnp && label_is_stale(ctx->nnp)) { in aa_replace_current_label()
67 struct aa_label *tmp = ctx->nnp; in aa_replace_current_label()
69 ctx->nnp = aa_get_newest_label(tmp); in aa_replace_current_label()
[all …]
H A Ddomain.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 2002-2008 Novell/SUSE
8 * Copyright 2009-2010 Canonical Ltd.
29 #include "include/path.h"
35 "conflicting profile attachments - ix fallback";
37 "conflicting profile attachments - ux fallback";
40 * may_change_ptraced_domain - check if can change profile on ptraced task
45 * Check if current is ptraced and if so if the tracing task is allowed
61 tracer = ptrace_parent(current); in may_change_ptraced_domain()
84 /**** TODO: dedup to aa_label_match - needs perm and dfa, merging
[all …]
/linux/security/landlock/
H A Dsyscalls.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Landlock - System call implementations and user space interfaces
5 * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net>
6 * Copyright © 2018-2020 ANSSI
7 * Copyright © 2021-2025 Microsoft Corporation
10 #include <asm/current.h>
23 #include <linux/path
289 get_path_from_fd(const s32 fd,struct path * const path) get_path_from_fd() argument
318 struct path path; add_rule_path_beneath() local
[all...]
H A Ddomain.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Landlock - Domain management
5 * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net>
6 * Copyright © 2018-2020 ANSSI
7 * Copyright © 2024-2025 Microsoft Corporation
22 #include <linux/path.h>
56 return ERR_PTR(-ENOME in get_current_exe()
[all...]
/linux/drivers/net/fddi/skfp/h/
H A Dsmc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
80 * ECM - Entity Coordination Management
84 u_char path_test ; /* ECM path test variable */
86 u_char DisconnectFlag ; /* jd 05-Aug-1999 Bug #10419
100 * RMT - Ring Management
129 * CFM - Configuration Management
134 u_char cf_state; /* CFM state machine current state */
139 * CEM - Configuration Element Management
151 * linked list of CCEs in current token path
167 #define SNMP_PATH_ISOLATED 1 /* Current path is isolated */
[all …]
H A Dsmt.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
96 #define SMT_MAX_INFO_LEN (4352-20) /* max length for SMT info */
110 #define SMTSETPARA(p,t) (p)->para.p_type = (t),\
111 (p)->para.p_len = sizeof(*(p)) - PARA_LEN
156 #define SMT_ST_TWISTED_A (1<<2) /* A-A connection, twisted ring */
157 #define SMT_ST_TWISTED_B (1<<3) /* B-B connection, twisted ring */
254 * P08 : path descriptors
258 #define SMT_P_PATH 0x0008 /* path descriptor */
294 * units of lem_cutoff,lem_alarm,lem_estimate : 10**-x
394 u_char ec_data[SMT_MAX_ECHO_LEN-4] ; /* echo data */
[all …]
/linux/drivers/net/wireless/marvell/libertas/
H A DREADME4 (c) Copyright © 2003-2006, Marvell International Ltd.
14 THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
35 Use the -i option to retrieve version information from the driver.
37 # ethtool -i eth0
39 version: COMM-USB8388-318.p4
40 firmware-version: 5.110.7
41 bus-info:
43 Use the -e option to read the EEPROM contents of the card.
46 ethtool -e ethX [raw on|off] [offset N] [length N]
48 -e retrieves and prints an EEPROM dump for the specified ethernet
[all …]
/linux/tools/testing/selftests/namespaces/
H A Dnsid_test.c1 // SPDX-License-Identifier: GPL-2.0
32 self->child_pid = 0; in FIXTURE_SETUP()
33 self->grandchild_pid = 0;
42 if (self->grandchild_pid > 0) { in TEST()
43 kill(self->grandchild_pid, SIGKILL); in TEST()
44 waitpid(self->grandchild_pid, NULL, 0); in TEST()
46 if (self->child_pid > 0) { in TEST()
47 kill(self->child_pi in TEST()
131 char path[256]; TEST_F() local
237 char path[256]; TEST_F() local
343 char path[256]; TEST_F() local
449 char path[256]; TEST_F() local
555 char path[256]; TEST_F() local
682 char path[256]; TEST_F() local
803 char path[256]; TEST_F() local
941 char path[256]; TEST_F() local
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_vfs_reject.c1 // SPDX-License-Identifier: GPL-2.0
58 parent = bpf_get_current_task_btf()->parent; in BPF_PROG()
104 struct path *root; in BPF_PROG()
109 root = &task->fs->root; in BPF_PROG()
118 struct path *pwd; in BPF_PROG()
119 struct task_struct *current; in BPF_PROG() local
121 current = bpf_get_current_task_btf(); in BPF_PROG()
125 pwd = &current->fs->pwd; in BPF_PROG()
131 __failure __msg("kernel function bpf_path_d_path R1 expected pointer to STRUCT path but R1 has a po…
134 bpf_path_d_path((struct path *)&file->f_task_work, buf, sizeof(buf)); in BPF_PROG()
[all …]
/linux/fs/
H A Dcoredump.c1 // SPDX-License-Identifier: GPL-2.0
42 #include <linux/path.h>
76 * File descriptor number for the pidfd for the thread-group leader of
111 corename = krealloc(cn->corename, size, GFP_KERNEL); in expand_corename()
113 return -ENOMEM; in expand_corename()
115 cn->corename = corename; in expand_corename()
116 cn->size = size; in expand_corename()
131 free = cn->size - cn->used; in cn_vprintf()
134 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf()
138 cn->used += need; in cn_vprintf()
[all …]
H A Dnamespace.c1 // SPDX-License-Identifier: GPL-2.0-only
132 if (ns && refcount_dec_and_test(&ns->passive)) { in mnt_ns_release()
134 put_user_ns(ns->user_ns); in mnt_ns_release()
152 call_rcu(&ns->ns.ns_rcu, mnt_ns_release_rcu); in mnt_ns_tree_remove()
184 refcount_inc(&mnt_ns->passive); in lookup_mnt_ns()
218 res = __xa_alloc(&mnt_id_xa, &mnt->mnt_id, mnt, xa_limit_31b, GFP_KERNEL); in mnt_alloc_id()
220 mnt->mnt_id_unique = ++mnt_id_ctr; in mnt_alloc_id()
227 xa_erase(&mnt_id_xa, mnt->mnt_id); in mnt_free_id()
239 mnt->mnt_group_id = res; in mnt_alloc_group_id()
248 ida_free(&mnt_group_ida, mnt->mnt_group_id); in mnt_release_group_id()
[all …]
/linux/Documentation/locking/
H A Drt-mutex-design.rst2 RT-mutex implementation design
12 Documentation/locking/rt-mutex.rst. Although this document does explain problems
22 ----------------------------
49 A ---+
52 C +----+
54 B +-------->
59 -------------------------
65 process blocks on a lock owned by the current process. To make this easier
74 -----------
80 - The PI chain is an ordered series of locks and processes that cause
[all …]
/linux/fs/btrfs/
H A Dreflink.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "delalloc-space.h"
11 #include "disk-io.h"
16 #include "file-item.h"
29 struct inode *vfs_inode = &inode->vfs_inode; in clone_finish_inode_update()
42 if (endoff > vfs_inode->i_size) { in clone_finish_inode_update()
63 struct btrfs_fs_info *fs_info = inode->root->fs_info; in copy_inline_to_page()
64 const u32 block_size = fs_info->sectorsize; in copy_inline_to_page()
65 const u64 range_end = file_offset + block_size - 1; in copy_inline_to_page()
66 const size_t inline_size = size - btrfs_file_extent_calc_inline_size(0); in copy_inline_to_page()
[all …]
H A Dfiemap.c1 // SPDX-License-Identifier: GPL-2.0
7 #include "file-item.h"
18 * range from the inode's io tree, unlock the subvolume tree search path, flush
25 #define BTRFS_FIEMAP_FLUSH_CACHE (-(MAX_ERRNO + 1))
30 * - Cache the next entry to be emitted to the fiemap buffer, so that we can
33 * - Store extents ready to be written to the fiemap buffer in an intermediary
55 * releasing the search path.
78 for (int i = 0; i < cache->entries_pos; i++) { in flush_fiemap_cache()
79 struct btrfs_fiemap_entry *entry = &cache->entries[i]; in flush_fiemap_cache()
82 ret = fiemap_fill_next_extent(fieinfo, entry->offset, in flush_fiemap_cache()
[all …]
H A Dsend.c1 // SPDX-License-Identifier: GPL-2.0
14 #include <linux/radix-tree.h>
25 #include "disk-io.h"
29 #include "print-tree.h"
31 #include "dir-item.h"
32 #include "file-item.h"
46 * A fs_path is a helper to dynamically build path names with unknown size.
48 * It allows fast adding of path elements on the right side (normal path) and
49 * fast adding to the left side (reversed path). A reversed path can also be
52 * The definition of struct fs_path relies on -fms-extensions to allow
[all …]
/linux/tools/docs/
H A Dget_feat.py4 # SPDX-License-Identifier: GPL-2.0
19 SRC_DIR = os.path.dirname(os.path.realpath(__file__))
21 sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR))
25 SRCTREE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../..")
34 """Detects the current architecture"""
36 proc = subprocess.run(["uname", "-m"], check=True,
63 - neither feature nor arch is passed: generates a full matrix;
64 - arch provided: generates a table of supported tables for the
66 - only feature provided: generates a table with feature details,
83 Instead of using a --arch parameter, get feature for the current
[all …]
/linux/drivers/acpi/acpica/
H A Dnsaccess.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: nsaccess - Top-level functions for accessing ACPI namespace
51 * The global root ptr is initially NULL, so a non-NULL value indicates in acpi_ns_root_initialize()
85 for (init_val = acpi_gbl_pre_defined_names; init_val->name; init_val++) { in acpi_ns_root_initialize()
90 if (!strcmp(init_val->name, "_OSI") in acpi_ns_root_initialize()
102 acpi_ns_create_node(*ACPI_CAST_PTR(u32, init_val->name)); in acpi_ns_root_initialize()
108 new_node->descriptor_type = ACPI_DESC_TYPE_NAMED; in acpi_ns_root_initialize()
109 new_node->type = init_val->type; in acpi_ns_root_initialize()
114 prev_node->peer = new_node; in acpi_ns_root_initialize()
117 new_node->parent = &acpi_gbl_root_node_struct; in acpi_ns_root_initialize()
[all …]
/linux/sound/hda/codecs/
H A Dgeneric.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Generic BIOS auto-parser helper functions for HD-audio
16 /* table entry for multi-io paths */
18 hda_nid_t pin; /* multi-io widget pin NID */
20 unsigned int ctl_in; /* cached input-pin control value */
23 /* Widget connection path
25 * For output, stored in the order of DAC -> ... -> pin,
26 * for input, pin -> ... -> ADC.
28 * idx[i] contains the source index number to select on of the widget path[i];
29 * e.g. idx[1] is the index of the DAC (path[0]) selected by path[1] widget
[all …]
/linux/drivers/parisc/
H A Dpdc_stable.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2005-2006 Thibaut VARENE <varenet@parisc-linux.org>
14 * all) PA-RISC machines should have them. Anyway, for safety reasons, the
18 * One last word: there's one path we can always count on: the primary path.
19 * Anything above 224 bytes is used for 'osdep2' OS-dependent storage area.
21 * The first OS-dependent area should always be available. Obviously, this is
24 * NOTE: We do not handle the 2 bytes OS-dep area at 0x5D, nor the first
26 * sacrificed: -ETOOLAZY :P
28 * The current policy wrt file permissions is:
29 * - write: root only
[all …]
/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-recheck-rcuscale.sh2 # SPDX-License-Identifier: GPL-2.0+
6 # Usage: kvm-recheck-rcuscale.sh resdir
13 if test -d "$i" -a -r "$i"
20 PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH
23 if kvm-recheck-rcuscale-ftrace.sh $i
29 configfile=`echo $i | sed -e 's/^.*\///'`
31 sed -e 's/^\[[^]]*]//' < $i/console.log |
33 /-scale: .* gps: .* batches:/ {
38 /-scale: .*writer-duration/ {
43 /rcu_scale: Grace-period kthread CPU time/ {
[all …]
/linux/drivers/s390/block/
H A Ddasd_3990_erp.c1 // SPDX-License-Identifier: GPL-2.0
51 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_cleanup()
53 dasd_free_erp_request(erp, erp->memdev); in dasd_3990_erp_cleanup()
54 cqr->status = final_status; in dasd_3990_erp_cleanup()
70 struct dasd_device *device = erp->startdev; in dasd_3990_erp_block_queue()
76 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
78 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
79 erp->status = DASD_CQR_FILLED; in dasd_3990_erp_block_queue()
80 if (erp->block) in dasd_3990_erp_block_queue()
81 dasd_block_set_timer(erp->block, expires); in dasd_3990_erp_block_queue()
[all …]
/linux/tools/verification/rv/src/
H A Din_kernel.c1 // SPDX-License-Identifier: GPL-2.0
3 * in kernel monitor support: allows rv to control in-kernel monitors.
28 * __ikm_read_enable - reads monitor's enable status
32 * Returns the current status, or -1 if the monitor does not exist,
37 char path[MAX_PATH]; in __ikm_read_enable() local
41 snprintf(path, MAX_PATH, "rv/monitors/%s/enable", monitor_name); in __ikm_read_enable()
43 retval = tracefs_instance_file_read_number(NULL, path, in __ikm_read_enable()
122 char path[MAX_PATH]; ikm_write_enable() local
165 char path[MAX_PATH]; ikm_read_desc() local
234 char path[MAX_PATH]; ikm_write_reactor() local
252 char path[MAX_PATH]; ikm_read_reactor() local
311 char path[MAX_PATH]; ikm_has_id() local
[all...]

12345678910>>...45