/fs/nfs/ |
D | export.c | 67 struct nfs4_label *label = NULL; in nfs_fh_to_dentry() local 98 label = nfs4_label_alloc(NFS_SB(sb), GFP_KERNEL); in nfs_fh_to_dentry() 99 if (IS_ERR(label)) { in nfs_fh_to_dentry() 100 dentry = ERR_CAST(label); in nfs_fh_to_dentry() 105 ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, label, NULL); in nfs_fh_to_dentry() 112 inode = nfs_fhget(sb, server_fh, fattr, label); in nfs_fh_to_dentry() 118 nfs4_label_free(label); in nfs_fh_to_dentry() 133 struct nfs4_label *label = NULL; in nfs_get_parent() local 147 label = nfs4_label_alloc(server, GFP_KERNEL); in nfs_get_parent() 148 if (IS_ERR(label)) { in nfs_get_parent() [all …]
|
D | inode.c | 343 struct nfs4_label *label) in nfs_setsecurity() argument 347 if (label == NULL) in nfs_setsecurity() 351 error = security_inode_notifysecctx(inode, label->label, in nfs_setsecurity() 352 label->len); in nfs_setsecurity() 357 (char *)label->label, in nfs_setsecurity() 358 label->len, error); in nfs_setsecurity() 365 struct nfs4_label *label = NULL; in nfs4_label_alloc() local 369 return label; in nfs4_label_alloc() 372 return label; in nfs4_label_alloc() 374 label = kzalloc(sizeof(struct nfs4_label), flags); in nfs4_label_alloc() [all …]
|
D | nfs4proc.c | 94 …uct nfs_server *, struct nfs_fh *, struct nfs_fattr *, struct nfs4_label *label, struct inode *ino… 95 …rver, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label *label, struct inode *ino… 114 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument 118 if (label == NULL) in nfs4_label_init_security() 125 &dentry->d_name, (void **)&label->label, &label->len); in nfs4_label_init_security() 127 return label; in nfs4_label_init_security() 132 nfs4_label_release_security(struct nfs4_label *label) in nfs4_label_release_security() argument 134 if (label) in nfs4_label_release_security() 135 security_release_secctx(label->label, label->len); in nfs4_label_release_security() 137 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument [all …]
|
D | internal.h | 310 memcpy(dst->label, src->label, src->len); in nfs4_label_copy() 314 static inline void nfs4_label_free(struct nfs4_label *label) in nfs4_label_free() argument 316 if (label) { in nfs4_label_free() 317 kfree(label->label); in nfs4_label_free() 318 kfree(label); in nfs4_label_free() 330 static inline void nfs4_label_free(void *label) {} in nfs4_label_free() argument
|
D | dir.c | 493 nfs_setsecurity(d_inode(dentry), entry->fattr, entry->label); in nfs_prime_dcache() 507 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); in nfs_prime_dcache() 622 entry.label = nfs4_label_alloc(NFS_SERVER(inode), GFP_NOWAIT); in nfs_readdir_xdr_to_array() 623 if (IS_ERR(entry.label)) { in nfs_readdir_xdr_to_array() 624 status = PTR_ERR(entry.label); in nfs_readdir_xdr_to_array() 653 nfs4_label_free(entry.label); in nfs_readdir_xdr_to_array() 1135 struct nfs4_label *label; in nfs_lookup_revalidate_dentry() local 1141 label = nfs4_label_alloc(NFS_SERVER(inode), GFP_KERNEL); in nfs_lookup_revalidate_dentry() 1142 if (fhandle == NULL || fattr == NULL || IS_ERR(label)) in nfs_lookup_revalidate_dentry() 1145 ret = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, label); in nfs_lookup_revalidate_dentry() [all …]
|
D | nfs4xdr.c | 1070 const struct nfs4_label *label, in encode_attrs() argument 1145 if (label && (attrmask[2] & FATTR4_WORD2_SECURITY_LABEL)) { in encode_attrs() 1146 len += 4 + 4 + 4 + (XDR_QUADLEN(label->len) << 2); in encode_attrs() 1177 if (label && (bmval[2] & FATTR4_WORD2_SECURITY_LABEL)) { in encode_attrs() 1178 *p++ = cpu_to_be32(label->lfs); in encode_attrs() 1179 *p++ = cpu_to_be32(label->pi); in encode_attrs() 1180 *p++ = cpu_to_be32(label->len); in encode_attrs() 1181 p = xdr_encode_opaque_fixed(p, label->label, label->len); in encode_attrs() 1241 encode_attrs(xdr, create->attrs, create->label, &create->umask, in encode_create() 1427 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 152 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 154 struct nfs4_label *label) in nfs3_proc_lookup() argument
|
/fs/cifs/ |
D | smb2transport.c | 233 static int generate_key(struct cifs_ses *ses, struct kvec label, in generate_key() argument 274 label.iov_base, label.iov_len); in generate_key() 315 struct kvec label; member 331 rc = generate_key(ses, ptriplet->signing.label, in generate_smb3signingkey() 337 rc = generate_key(ses, ptriplet->encryption.label, in generate_smb3signingkey() 343 rc = generate_key(ses, ptriplet->decryption.label, in generate_smb3signingkey() 378 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey() 379 d->label.iov_len = 12; in generate_smb30signingkey() 384 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey() 385 d->label.iov_len = 11; in generate_smb30signingkey() [all …]
|
D | cifs_debug.h | 11 void cifs_dump_mem(char *label, void *data, int length);
|
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
|
D | cifs_debug.c | 28 cifs_dump_mem(char *label, void *data, int length) in cifs_dump_mem() argument 30 pr_debug("%s: dump of %d bytes of data at 0x%p\n", label, length, data); in cifs_dump_mem()
|
/fs/pstore/ |
D | ram_core.c | 442 unsigned int memtype, char *label) in persistent_ram_iomap() argument 446 if (!request_mem_region(start, size, label ?: "ramoops")) { in persistent_ram_iomap() 448 label ?: "ramoops", in persistent_ram_iomap() 476 prz->label); in persistent_ram_buffer_map() 498 pr_warn("ECC failed %s\n", prz->label); in persistent_ram_post_init() 557 kfree(prz->label); in persistent_ram_free() 563 unsigned int memtype, u32 flags, char *label) in persistent_ram_new() argument 577 prz->label = kstrdup(label, GFP_KERNEL); in persistent_ram_new() 588 prz->label, prz->size, (unsigned long long)prz->paddr, in persistent_ram_new()
|
D | ram.c | 576 char *label; in ramoops_init_przs() local 579 label = kasprintf(GFP_KERNEL, "ramoops:%s", name); in ramoops_init_przs() 581 label = kasprintf(GFP_KERNEL, "ramoops:%s(%d/%d)", in ramoops_init_przs() 585 cxt->memtype, flags, label); in ramoops_init_przs() 586 kfree(label); in ramoops_init_przs() 617 char *label; in ramoops_init_prz() local 629 label = kasprintf(GFP_KERNEL, "ramoops:%s", name); in ramoops_init_prz() 631 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz() 632 kfree(label); in ramoops_init_prz()
|
/fs/btrfs/ |
D | sysfs.c | 477 char *label = fs_info->super_copy->label; in btrfs_label_show() local 481 ret = snprintf(buf, PAGE_SIZE, label[0] ? "%s\n" : "%s", label); in btrfs_label_show() 510 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store() 511 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store() 522 BTRFS_ATTR_RW(, label, btrfs_label_show, btrfs_label_store); 608 BTRFS_ATTR_PTR(, label),
|
D | ioctl.c | 5175 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_get_fslabel() local 5178 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel() 5181 len = strnlen(label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel() 5189 ret = copy_to_user(arg, label, len); in btrfs_ioctl_get_fslabel() 5201 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_set_fslabel() local 5207 if (copy_from_user(label, arg, sizeof(label))) in btrfs_ioctl_set_fslabel() 5210 if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { in btrfs_ioctl_set_fslabel() 5228 strcpy(super_block->label, label); in btrfs_ioctl_set_fslabel()
|
/fs/xfs/ |
D | xfs_ioctl.c | 2020 char label[XFSLABEL_MAX + 1]; in xfs_ioc_getlabel() local 2026 memset(label, 0, sizeof(label)); in xfs_ioc_getlabel() 2028 strncpy(label, sbp->sb_fname, XFSLABEL_MAX); in xfs_ioc_getlabel() 2031 if (copy_to_user(user_label, label, sizeof(label))) in xfs_ioc_getlabel() 2043 char label[XFSLABEL_MAX + 1]; in xfs_ioc_setlabel() local 2055 if (copy_from_user(label, newlabel, XFSLABEL_MAX + 1)) in xfs_ioc_setlabel() 2057 len = strnlen(label, XFSLABEL_MAX + 1); in xfs_ioc_setlabel() 2067 memcpy(sbp->sb_fname, label, len); in xfs_ioc_setlabel()
|
/fs/nfsd/ |
D | Kconfig | 142 Say Y here if you want enable fine-grained security label attribute 144 SELinux and Smack to label files to facilitate enforcement of their policies. 145 Without this an NFSv4 mount will have the same label on each file.
|
D | vfs.c | 502 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument 515 host_error = security_inode_setsecctx(dentry, label->data, label->len); in nfsd4_set_nfs4_label() 521 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument
|
D | nfs4proc.c | 55 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument 62 label->data, label->len); in nfsd4_security_inode_setsecctx() 77 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
|
/fs/ |
D | readdir.c | 31 #define unsafe_copy_dirent_name(_dst, _src, _len, label) do { \ argument 35 unsafe_put_user(0, dst+len, label); \ 36 unsafe_copy_to_user(dst, src, len, label); \
|
/fs/ocfs2/ |
D | ocfs1_fs_compat.h | 85 /*30*/ __u8 label[OCFS1_MAX_VOL_LABEL_LEN]; member
|
D | ocfs2_trace.h | 1711 TP_PROTO(char *label, char *uuid_str, unsigned long long root_dir, 1713 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits), 1715 __string(label, label) 1722 __assign_str(label, label); 1728 TP_printk("%s %s %llu %llu %d", __get_str(label), __get_str(uuid_str),
|
/fs/jfs/ |
D | jfs_logmgr.h | 66 char label[16]; /* 16: journal label */ member
|
/fs/gfs2/ |
D | file.c | 331 static int gfs2_getlabel(struct file *filp, char __user *label) in gfs2_getlabel() argument 336 if (copy_to_user(label, sdp->sd_sb.sb_locktable, GFS2_LOCKNAME_LEN)) in gfs2_getlabel()
|