Home
last modified time | relevance | path

Searched +full:set +full:- +full:aces (Results 1 – 18 of 18) sorted by relevance

/Linux-v6.6/fs/nfsd/
Dnfs4acl.c140 pacl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfsd4_get_nfs4_acl()
146 size += 2 * pacl->a_count; in nfsd4_get_nfs4_acl()
148 if (S_ISDIR(inode->i_mode)) { in nfsd4_get_nfs4_acl()
157 size += 2 * dpacl->a_count; in nfsd4_get_nfs4_acl()
162 error = -ENOMEM; in nfsd4_get_nfs4_acl()
165 (*acl)->naces = 0; in nfsd4_get_nfs4_acl()
199 pas->mask = 07; in summarize_posix_acl()
201 pe = acl->a_entries + acl->a_count; in summarize_posix_acl()
204 switch (pa->e_tag) { in summarize_posix_acl()
206 pas->owner = pa->e_perm; in summarize_posix_acl()
[all …]
Dnfs4xdr.c2 * Server-side XDR for NFSv4
109 return (clid->cl_boot == 0) && (clid->cl_id == 0); in zero_clientid()
113 * svcxdr_tmpalloc - allocate memory to be freed after compound processing
128 tb->next = argp->to_free; in svcxdr_tmpalloc()
129 argp->to_free = tb; in svcxdr_tmpalloc()
130 return tb->buf; in svcxdr_tmpalloc()
135 * as null-terminated strings.
137 * Note null-terminating in place usually isn't safe since the
161 if (p != argp->xdr->scratch.iov_base) in svcxdr_savemem()
176 * This helper handles variable-length opaques which belong to protocol
[all …]
/Linux-v6.6/fs/smb/server/
Dsmbacl.c1 // SPDX-License-Identifier: LGPL-2.1+
38 /* S-1-22-1 Unmapped Unix users */
42 /* S-1-22-2 Unmapped Unix groups */
47 * See http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx
50 /* S-1-5-88 MS NFS and Apple style UID/GID/mode */
52 /* S-1-5-88-1 Unix uid */
57 /* S-1-5-88-2 Unix gid */
62 /* S-1-5-88-3 Unix mode */
69 * the same returns zero, if they do not match returns non-zero.
80 if (ctsid->revision != cwsid->revision) { in compare_sids()
[all …]
Dvfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/backing-dev.h>
43 if (!test_share_config_flag(work->tcon->share_conf, in ksmbd_vfs_inherit_owner()
51 * ksmbd_vfs_lock_parent() - lock parent dentry if it is stable
56 if (child->d_parent != parent) { in ksmbd_vfs_lock_parent()
58 return -ENOENT; in ksmbd_vfs_lock_parent()
71 struct path *root_share_path = &share_conf->vfs_path; in ksmbd_vfs_path_lookup_locked()
76 pathname = share_conf->path; in ksmbd_vfs_path_lookup_locked()
97 return -ENOENT; in ksmbd_vfs_path_lookup_locked()
100 inode_lock_nested(parent_path->dentry->d_inode, I_MUTEX_PARENT); in ksmbd_vfs_path_lookup_locked()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/spi/
Dsocionext,synquacer-spi.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/spi/socionext,synquacer-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Socionext SynQuacer HS-SPI Controller
10 - Masahisa Kojima <masahisa.kojima@linaro.org>
11 - Jassi Brar <jaswinder.singh@linaro.org>
14 - $ref: spi-controller.yaml#
18 const: socionext,synquacer-spi
26 - description: core clock
[all …]
/Linux-v6.6/fs/smb/client/
Dcifsacl.c1 // SPDX-License-Identifier: LGPL-2.1
15 #include <linux/key-type.h>
19 #include <keys/user-type.h>
36 /* S-1-22-1 Unmapped Unix users */
40 /* S-1-22-2 Unmapped Unix groups */
45 * See https://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx
48 /* S-1-5-88 MS NFS and Apple style UID/GID/mode */
50 /* S-1-5-88-1 Unix uid */
55 /* S-1-5-88-2 Unix gid */
60 /* S-1-5-88-3 Unix mode */
[all …]
Dcifsacl.h1 /* SPDX-License-Identifier: LGPL-2.1 */
33 * Security Descriptor length containing DACL with 3 ACEs (one each for
48 * "S-" + 3 bytes for version field + 15 for authority field + NULL terminator
50 * For authority field, max is when all 6 values are non-zero and it must be
51 * represented in hex. So "-0x" + 12 hex digits.
53 * Add 11 bytes for each subauthority field (10 bytes each + 1 for '-')
83 /* ACE types - see MS-DTYP 2.4.4.1 */
115 __u8 type; /* see above and MS-DTYP 2.4.4.1 */
125 * matches names of fields to the spec, MS-DTYP (see sections 2.4.5 and
127 * match the MS-DTYP and MS-SMB2 specs which define the wire format.
[all …]
Dcifsglob.h1 /* SPDX-License-Identifier: LGPL-2.1 */
53 * max attribute cache timeout (jiffies) - 2^30
107 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses))
160 struct shash_desc *hmacsha256; /* hmac-sha256 hash function, for SMB2 signatures */
162 struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */
164 struct crypto_aead *enc; /* smb3 encryption AEAD TFM (AES-CCM and AES-GCM) */
165 struct crypto_aead *dec; /* smb3 decryption AEAD TFM (AES-CCM and AES-GCM) */
185 struct cifs_ace *aces; member
203 ((d)->reparse_point || \
204 (le32_to_cpu((d)->fi.Attributes) & ATTR_REPARSE))
[all …]
Dcifssmb.c1 // SPDX-License-Identifier: LGPL-2.1
11 /* SMB/CIFS PDU handling routines here - except for leftovers in connect.c */
78 * tcp and smb session status done differently for those three - in the in cifs_reconnect_tcon()
84 ses = tcon->ses; in cifs_reconnect_tcon()
85 server = ses->server; in cifs_reconnect_tcon()
91 spin_lock(&tcon->tc_lock); in cifs_reconnect_tcon()
92 if (tcon->status == TID_EXITING) { in cifs_reconnect_tcon()
94 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
97 return -ENODEV; in cifs_reconnect_tcon()
100 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
[all …]
Dsmb2pdu.c1 // SPDX-License-Identifier: LGPL-2.1
13 /* SMB2 PDU handling routines here - except for leftovers (eg session setup) */
75 if (!tcon || !tcon->ses) in smb3_encryption_required()
77 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required()
78 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required()
80 if (tcon->seal && in smb3_encryption_required()
81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
93 shdr->ProtocolId = SMB2_PROTO_NUMBER; in smb2_hdr_assemble()
94 shdr->StructureSize = cpu_to_le16(64); in smb2_hdr_assemble()
95 shdr->Command = smb2_cmd; in smb2_hdr_assemble()
[all …]
/Linux-v6.6/fs/nfs_common/
Dnfsacl.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
12 * - Minimal ACLs always have an ACL_MASK entry, so they have
14 * - The ACL_MASK entry in such minimal ACLs always has the same
17 * - The identifier fields of the ACL_USER_OBJ and ACL_GROUP_OBJ
19 * (In POSIX ACLs we always set them to ACL_UNDEFINED_ID).
20 * - ACL entries in the kernel are kept sorted in ascending order
56 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
58 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
59 switch(entry->e_tag) { in xdr_nfsace_encode()
[all …]
/Linux-v6.6/drivers/spi/
Dspi-synquacer.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2015-2018 Socionext Inc.
6 // Copyright (c) 2018-2019 Linaro Ltd.
108 (SYNQUACER_HSSPI_FIFO_DEPTH - SYNQUACER_HSSPI_FIFO_TX_THRESHOLD)
128 bool aces, rtm; member
143 u32 len = readl(sspi->regs + SYNQUACER_HSSPI_REG_DMSTATUS); in read_fifo()
147 len = min(len, sspi->rx_words); in read_fifo()
149 switch (sspi->bpw) { in read_fifo()
151 u8 *buf = sspi->rx_buf; in read_fifo()
153 ioread8_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, in read_fifo()
[all …]
/Linux-v6.6/include/linux/
Dnfs_fs_sb.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <linux/backing-dev.h>
31 int cl_cons_state; /* current construction state (-ve: init error) */
36 #define NFS_CS_CALLBACK 1 /* - callback started */
37 #define NFS_CS_IDMAP 2 /* - idmap started */
38 #define NFS_CS_RENEWD 3 /* - renewd started */
42 #define NFS_CS_NORESVPORT 0 /* - use ephemeral src port */
43 #define NFS_CS_DISCRTRY 1 /* - disconnect on RPC retry */
44 #define NFS_CS_MIGRATION 2 /* - transparent state migr */
45 #define NFS_CS_INFINITE_SLOTS 3 /* - don't limit TCP slots */
[all …]
/Linux-v6.6/fs/ntfs/
Dlayout.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * layout.h - All NTFS associated on-disk structures. Part of the Linux-NTFS
6 * Copyright (c) 2001-2005 Anton Altaparmakov
71 approx. 4.7x10^21 bytes. (-; */
117 * operator! (-8
163 * been written to disk. The values 0 and -1 (ie. 0xffff) are not used. All
165 * are set to it (during writing). If they are not, an incomplete multi sector
170 * (obviously) finish before the last le16 of the first 512-byte sector.
175 NTFS_RECORD_TYPE magic; /* A four-byte magic identifying the record
212 FILE_BadClus = 8, /* Contains all bad clusters in the non-resident
[all …]
/Linux-v6.6/fs/afs/
Dinternal.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
19 #include <linux/backing-dev.h>
38 * Partial file-locking emulation mode. (The problem being that AFS3 only
39 * allows whole-file locks and no upgrading/downgrading).
51 bool autocell; /* T if set auto mount operation */
54 enum afs_flock_mode flock_mode; /* Partial file-locking emulation mode */
95 * a record of an in-progress RxRPC call
113 union { /* Convenience for ->def_iter */
131 unsigned int max_lifespan; /* Maximum lifespan in secs to set if not 0 */
136 unsigned char addr_ix; /* Address in ->alist */
[all …]
/Linux-v6.6/block/
Dsed-opal.c1 // SPDX-License-Identifier: GPL-2.0
19 #include <uapi/linux/sed-opal.h>
20 #include <linux/sed-opal.h>
24 #include <linux/key-type.h>
25 #include <keys/user-type.h>
285 return -ENOKEY; in update_sed_opal_key()
310 return -ENOKEY; in read_sed_opal_key()
319 down_read(&key->sem); in read_sed_opal_key()
322 if (buflen > key->datalen) in read_sed_opal_key()
323 buflen = key->datalen; in read_sed_opal_key()
[all …]
/Linux-v6.6/fs/ntfs3/
Dfsntfs.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
18 // clang-format off
126 // clang-format on
129 * ntfs_fix_pre_write - Insert fixups into @rhdr before writing to disk.
135 u16 fo = le16_to_cpu(rhdr->fix_off); in ntfs_fix_pre_write()
136 u16 fn = le16_to_cpu(rhdr->fix_num); in ntfs_fix_pre_write()
138 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_fix_pre_write()
153 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_pre_write()
155 while (fn--) { in ntfs_fix_pre_write()
[all …]
/Linux-v6.6/fs/nfs/
Dnfs4proc.c4 * Client-side procedure declarations for NFSv4.
125 label->lfs = 0; in nfs4_label_init_security()
126 label->pi = 0; in nfs4_label_init_security()
127 label->len = 0; in nfs4_label_init_security()
128 label->label = NULL; in nfs4_label_init_security()
130 err = security_dentry_init_security(dentry, sattr->ia_mode, in nfs4_label_init_security()
131 &dentry->d_name, NULL, in nfs4_label_init_security()
132 (void **)&label->label, &label->len); in nfs4_label_init_security()
142 security_release_secctx(label->label, label->len); in nfs4_label_release_security()
147 return server->attr_bitmask; in nfs4_bitmask()
[all …]