/linux-6.12.1/fs/nfsd/ |
D | nfs4acl.c | 140 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 …]
|
D | nfs4xdr.c | 2 * 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-6.12.1/fs/smb/server/ |
D | smbacl.c | 1 // 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 …]
|
D | vfs.c | 1 // 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 55 * Returns: %0 on success, %-ENOENT if the parent dentry is not stable 60 if (child->d_parent != parent) { in ksmbd_vfs_lock_parent() 62 return -ENOENT; in ksmbd_vfs_lock_parent() 75 struct path *root_share_path = &share_conf->vfs_path; in ksmbd_vfs_path_lookup_locked() 80 pathname = share_conf->path; in ksmbd_vfs_path_lookup_locked() 101 return -ENOENT; in ksmbd_vfs_path_lookup_locked() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/spi/ |
D | socionext,synquacer-spi.yaml | 1 # 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-6.12.1/fs/smb/client/ |
D | cifsacl.c | 1 // 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 …]
|
D | cifsacl.h | 1 /* SPDX-License-Identifier: LGPL-2.1 */ 26 * Security Descriptor length containing DACL with 3 ACEs (one each for 36 * matches names of fields to the spec, MS-DTYP (see sections 2.4.5 and 38 * match the MS-DTYP and MS-SMB2 specs which define the wire format. 42 __u8 Sbz1; /* only meaningful if 'RM' flag set below */ 55 #define ACL_CONTROL_SI 0x0800 /* SACL Auto-Inherited */ 56 #define ACL_CONTROL_DI 0x0400 /* DACL Auto-Inherited */ 69 #define ACL_REVISION 0x02 /* See section 2.4.4.1 of MS-DTYP */ 82 * See http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx 98 * and Groups such as NULL SID and World or Built-in accounts such
|
D | cifsglob.h | 1 /* SPDX-License-Identifier: LGPL-2.1 */ 58 * max attribute cache timeout (jiffies) - 2^30 112 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) 182 struct shash_desc *hmacsha256; /* hmac-sha256 hash function, for SMB2 signatures */ 184 struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */ 186 struct crypto_aead *enc; /* smb3 encryption AEAD TFM (AES-CCM and AES-GCM) */ 187 struct crypto_aead *dec; /* smb3 decryption AEAD TFM (AES-CCM and AES-GCM) */ 207 struct smb_ace *aces; member 304 * message field DataRemaining for out-of-band data read (e.g through 333 /* set negotiated write size */ [all …]
|
D | cifssmb.c | 1 // SPDX-License-Identifier: LGPL-2.1 11 /* SMB/CIFS PDU handling routines here - except for leftovers in connect.c */ 80 * tcp and smb session status done differently for those three - in the in cifs_reconnect_tcon() 86 ses = tcon->ses; in cifs_reconnect_tcon() 87 server = ses->server; in cifs_reconnect_tcon() 93 spin_lock(&tcon->tc_lock); in cifs_reconnect_tcon() 94 if (tcon->status == TID_EXITING) { in cifs_reconnect_tcon() 96 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon() 99 return -ENODEV; in cifs_reconnect_tcon() 102 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon() [all …]
|
D | smb2pdu.c | 1 // SPDX-License-Identifier: LGPL-2.1 13 /* SMB2 PDU handling routines here - except for leftovers (eg session setup) */ 78 if (!tcon || !tcon->ses) in smb3_encryption_required() 80 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 81 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required() 83 if (tcon->seal && in smb3_encryption_required() 84 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 87 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 99 shdr->ProtocolId = SMB2_PROTO_NUMBER; in smb2_hdr_assemble() 100 shdr->StructureSize = cpu_to_le16(64); in smb2_hdr_assemble() [all …]
|
/linux-6.12.1/fs/nfs_common/ |
D | nfsacl.c | 1 // 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 57 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode() 59 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode() 60 switch(entry->e_tag) { in xdr_nfsace_encode() [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-synquacer.c | 1 // 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-6.12.1/include/linux/ |
D | nfs_fs_sb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #include <linux/backing-dev.h> 32 int cl_cons_state; /* current construction state (-ve: init error) */ 37 #define NFS_CS_CALLBACK 1 /* - callback started */ 38 #define NFS_CS_IDMAP 2 /* - idmap started */ 39 #define NFS_CS_RENEWD 3 /* - renewd started */ 43 #define NFS_CS_NORESVPORT 0 /* - use ephemeral src port */ 44 #define NFS_CS_DISCRTRY 1 /* - disconnect on RPC retry */ 45 #define NFS_CS_MIGRATION 2 /* - transparent state migr */ 46 #define NFS_CS_INFINITE_SLOTS 3 /* - don't limit TCP slots */ [all …]
|
/linux-6.12.1/fs/afs/ |
D | internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 #include <linux/backing-dev.h> 39 * Partial file-locking emulation mode. (The problem being that AFS3 only 40 * allows whole-file locks and no upgrading/downgrading). 52 bool autocell; /* T if set auto mount operation */ 55 enum afs_flock_mode flock_mode; /* Partial file-locking emulation mode */ 126 * a record of an in-progress RxRPC call 145 union { /* Convenience for ->def_iter */ 158 unsigned char probe_index; /* Address in ->probe_alist */ 166 unsigned int max_lifespan; /* Maximum lifespan in secs to set if not 0 */ [all …]
|
/linux-6.12.1/block/ |
D | sed-opal.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <uapi/linux/sed-opal.h> 20 #include <linux/sed-opal.h> 21 #include <linux/sed-opal-key.h> 25 #include <linux/key-type.h> 26 #include <keys/user-type.h> 286 return -ENOKEY; in update_sed_opal_key() 311 return -ENOKEY; in read_sed_opal_key() 320 down_read(&key->sem); in read_sed_opal_key() 323 if (buflen > key->datalen) in read_sed_opal_key() [all …]
|
/linux-6.12.1/fs/ntfs3/ |
D | fsntfs.c | 1 // 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-6.12.1/fs/nfs/ |
D | nfs4proc.c | 4 * 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 …]
|