/fs/nfs/ |
D | export.c | 72 struct nfs4_label *label = NULL; in nfs_fh_to_dentry() local 103 label = nfs4_label_alloc(NFS_SB(sb), GFP_KERNEL); in nfs_fh_to_dentry() 104 if (IS_ERR(label)) { in nfs_fh_to_dentry() 105 dentry = ERR_CAST(label); in nfs_fh_to_dentry() 110 ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, label); in nfs_fh_to_dentry() 117 inode = nfs_fhget(sb, server_fh, fattr, label); in nfs_fh_to_dentry() 123 nfs4_label_free(label); in nfs_fh_to_dentry() 138 struct nfs4_label *label = NULL; in nfs_get_parent() local 152 label = nfs4_label_alloc(server, GFP_KERNEL); in nfs_get_parent() 153 if (IS_ERR(label)) { in nfs_get_parent() [all …]
|
D | inode.c | 336 struct nfs4_label *label) in nfs_setsecurity() argument 340 if (label == NULL) in nfs_setsecurity() 344 error = security_inode_notifysecctx(inode, label->label, in nfs_setsecurity() 345 label->len); in nfs_setsecurity() 350 (char *)label->label, in nfs_setsecurity() 351 label->len, error); in nfs_setsecurity() 358 struct nfs4_label *label = NULL; in nfs4_label_alloc() local 362 return label; in nfs4_label_alloc() 365 return label; in nfs4_label_alloc() 367 label = kzalloc(sizeof(struct nfs4_label), flags); in nfs4_label_alloc() [all …]
|
D | nfs4proc.c | 92 …4_proc_getattr(struct nfs_server *, struct nfs_fh *, struct nfs_fattr *, struct nfs4_label *label); 93 …uct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label *label); 112 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument 116 if (label == NULL) in nfs4_label_init_security() 123 &dentry->d_name, (void **)&label->label, &label->len); in nfs4_label_init_security() 125 return label; in nfs4_label_init_security() 130 nfs4_label_release_security(struct nfs4_label *label) in nfs4_label_release_security() argument 132 if (label) in nfs4_label_release_security() 133 security_release_secctx(label->label, label->len); in nfs4_label_release_security() 135 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument [all …]
|
D | internal.h | 315 memcpy(dst->label, src->label, src->len); in nfs4_label_copy() 319 static inline void nfs4_label_free(struct nfs4_label *label) in nfs4_label_free() argument 321 if (label) { in nfs4_label_free() 322 kfree(label->label); in nfs4_label_free() 323 kfree(label); in nfs4_label_free() 335 static inline void nfs4_label_free(void *label) {} in nfs4_label_free() argument
|
D | dir.c | 512 nfs_setsecurity(d_inode(dentry), entry->fattr, entry->label); in nfs_prime_dcache() 526 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); in nfs_prime_dcache() 643 entry.label = nfs4_label_alloc(NFS_SERVER(inode), GFP_NOWAIT); in nfs_readdir_xdr_to_array() 644 if (IS_ERR(entry.label)) { in nfs_readdir_xdr_to_array() 645 status = PTR_ERR(entry.label); in nfs_readdir_xdr_to_array() 672 nfs4_label_free(entry.label); in nfs_readdir_xdr_to_array() 1143 struct nfs4_label *label; in nfs_lookup_revalidate_dentry() local 1149 label = nfs4_label_alloc(NFS_SERVER(inode), GFP_KERNEL); in nfs_lookup_revalidate_dentry() 1150 if (fhandle == NULL || fattr == NULL || IS_ERR(label)) in nfs_lookup_revalidate_dentry() 1153 ret = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, label); in nfs_lookup_revalidate_dentry() [all …]
|
D | nfs4xdr.c | 1016 const struct nfs4_label *label, in encode_attrs() argument 1092 if (label && (attrmask[2] & FATTR4_WORD2_SECURITY_LABEL)) { in encode_attrs() 1093 len += 4 + 4 + 4 + (XDR_QUADLEN(label->len) << 2); in encode_attrs() 1135 if (label && (bmval[2] & FATTR4_WORD2_SECURITY_LABEL)) { in encode_attrs() 1136 *p++ = cpu_to_be32(label->lfs); in encode_attrs() 1137 *p++ = cpu_to_be32(label->pi); in encode_attrs() 1138 *p++ = cpu_to_be32(label->len); in encode_attrs() 1139 p = xdr_encode_opaque_fixed(p, label->label, label->len); in encode_attrs() 1199 encode_attrs(xdr, create->attrs, create->label, &create->umask, in encode_create() 1425 encode_attrs(xdr, arg->u.attrs, arg->label, &arg->umask, in encode_createmode() [all …]
|
D | proc.c | 102 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs_proc_getattr() argument 151 struct nfs4_label *label) in nfs_proc_lookup() argument
|
D | nfs3proc.c | 104 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs3_proc_getattr() argument 150 struct nfs4_label *label) in nfs3_proc_lookup() argument
|
/fs/cifs/ |
D | smb2transport.c | 214 static int generate_key(struct cifs_ses *ses, struct kvec label, in generate_key() argument 254 label.iov_base, label.iov_len); in generate_key() 295 struct kvec label; member 311 rc = generate_key(ses, ptriplet->signing.label, in generate_smb3signingkey() 317 rc = generate_key(ses, ptriplet->encryption.label, in generate_smb3signingkey() 323 rc = generate_key(ses, ptriplet->decryption.label, in generate_smb3signingkey() 358 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey() 359 d->label.iov_len = 12; in generate_smb30signingkey() 364 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey() 365 d->label.iov_len = 11; in generate_smb30signingkey() [all …]
|
D | cifs_debug.h | 25 void cifs_dump_mem(char *label, void *data, int length);
|
D | cifs_debug.c | 35 cifs_dump_mem(char *label, void *data, int length) in cifs_dump_mem() argument 37 pr_debug("%s: dump of %d bytes of data at 0x%p\n", label, length, data); in cifs_dump_mem()
|
D | readdir.c | 44 static void dump_cifs_file_struct(struct file *file, char *label) in dump_cifs_file_struct() argument 63 static inline void dump_cifs_file_struct(struct file *file, char *label) in dump_cifs_file_struct() argument
|
/fs/btrfs/ |
D | sysfs.c | 373 char *label = fs_info->super_copy->label; in btrfs_label_show() local 377 ret = snprintf(buf, PAGE_SIZE, label[0] ? "%s\n" : "%s", label); in btrfs_label_show() 406 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store() 407 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store() 418 BTRFS_ATTR_RW(label, btrfs_label_show, btrfs_label_store); 493 BTRFS_ATTR_PTR(label),
|
D | ioctl.c | 5316 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_get_fslabel() local 5319 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel() 5322 len = strnlen(label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel() 5330 ret = copy_to_user(arg, label, len); in btrfs_ioctl_get_fslabel() 5342 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_set_fslabel() local 5348 if (copy_from_user(label, arg, sizeof(label))) in btrfs_ioctl_set_fslabel() 5351 if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { in btrfs_ioctl_set_fslabel() 5369 strcpy(super_block->label, label); in btrfs_ioctl_set_fslabel()
|
D | volumes.c | 1114 if ((*disk_super)->label[0] && in btrfs_read_disk_super() 1115 (*disk_super)->label[BTRFS_LABEL_SIZE - 1]) in btrfs_read_disk_super() 1116 (*disk_super)->label[BTRFS_LABEL_SIZE - 1] = '\0'; in btrfs_read_disk_super() 1163 if (disk_super->label[0]) { in btrfs_scan_one_device() 1164 pr_info("BTRFS: device label %s ", disk_super->label); in btrfs_scan_one_device()
|
D | ctree.h | 241 char label[BTRFS_LABEL_SIZE]; member
|
/fs/nfsd/ |
D | Kconfig | 139 Say Y here if you want enable fine-grained security label attribute 141 SELinux and Smack to label files to facilitate enforcement of their policies. 142 Without this an NFSv4 mount will have the same label on each file.
|
D | vfs.c | 529 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument 542 host_error = security_inode_setsecctx(dentry, label->data, label->len); in nfsd4_set_nfs4_label() 548 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument
|
D | nfs4proc.c | 54 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument 61 label->data, label->len); in nfsd4_security_inode_setsecctx() 76 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
|
D | nfs4xdr.c | 321 struct xdr_netobj *label, int *umask) in nfsd4_decode_fattr() argument 456 label->len = 0; in nfsd4_decode_fattr() 473 label->len = dummy32; in nfsd4_decode_fattr() 474 label->data = svcxdr_dupstr(argp, buf, dummy32); in nfsd4_decode_fattr() 475 if (!label->data) in nfsd4_decode_fattr()
|
/fs/ocfs2/ |
D | ocfs1_fs_compat.h | 98 /*30*/ __u8 label[OCFS1_MAX_VOL_LABEL_LEN]; member
|
D | ocfs2_trace.h | 1707 TP_PROTO(char *label, char *uuid_str, unsigned long long root_dir, 1709 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits), 1711 __string(label, label) 1718 __assign_str(label, label); 1724 TP_printk("%s %s %llu %llu %d", __get_str(label), __get_str(uuid_str),
|
/fs/jfs/ |
D | jfs_logmgr.h | 77 char label[16]; /* 16: journal label */ member
|
/fs/reiserfs/ |
D | README | 12 want it to be owned by Hans Reiser, put your copyright label on that
|
/fs/ext4/ |
D | namei.c | 592 static void dx_show_index(char * label, struct dx_entry *entries) in dx_show_index() argument 595 printk(KERN_DEBUG "%s index", label); in dx_show_index()
|