Home
last modified time | relevance | path

Searched refs:label (Results 1 – 25 of 35) sorted by relevance

12

/fs/nfs/
Dexport.c67 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()
113 inode = nfs_fhget(sb, server_fh, fattr, label); in nfs_fh_to_dentry()
119 nfs4_label_free(label); in nfs_fh_to_dentry()
134 struct nfs4_label *label = NULL; in nfs_get_parent() local
148 label = nfs4_label_alloc(server, GFP_KERNEL); in nfs_get_parent()
149 if (IS_ERR(label)) { in nfs_get_parent()
[all …]
Dinode.c359 struct nfs4_label *label) in nfs_setsecurity() argument
363 if (label == NULL) in nfs_setsecurity()
367 error = security_inode_notifysecctx(inode, label->label, in nfs_setsecurity()
368 label->len); in nfs_setsecurity()
373 (char *)label->label, in nfs_setsecurity()
374 label->len, error); in nfs_setsecurity()
381 struct nfs4_label *label = NULL; in nfs4_label_alloc() local
385 return label; in nfs4_label_alloc()
388 return label; in nfs4_label_alloc()
390 label = kzalloc(sizeof(struct nfs4_label), flags); in nfs4_label_alloc()
[all …]
Dnfs4proc.c96 …rver, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label *label, struct inode *ino…
114 struct nfs4_label *label);
119 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument
123 if (label == NULL) in nfs4_label_init_security()
129 label->lfs = 0; in nfs4_label_init_security()
130 label->pi = 0; in nfs4_label_init_security()
131 label->len = 0; in nfs4_label_init_security()
132 label->label = NULL; in nfs4_label_init_security()
135 &dentry->d_name, (void **)&label->label, &label->len); in nfs4_label_init_security()
137 return label; in nfs4_label_init_security()
[all …]
Ddir.c684 nfs_setsecurity(d_inode(dentry), entry->fattr, entry->label); in nfs_prime_dcache()
698 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); in nfs_prime_dcache()
734 if (entry->label) in nfs_readdir_page_filler()
735 entry->label->len = NFS4_MAXLABELLEN; in nfs_readdir_page_filler()
845 entry->label = nfs4_label_alloc(NFS_SERVER(inode), GFP_NOWAIT); in nfs_readdir_xdr_to_array()
846 if (IS_ERR(entry->label)) { in nfs_readdir_xdr_to_array()
847 status = PTR_ERR(entry->label); in nfs_readdir_xdr_to_array()
879 nfs4_label_free(entry->label); in nfs_readdir_xdr_to_array()
1505 struct nfs4_label *label; in nfs_lookup_revalidate_dentry() local
1512 label = nfs4_label_alloc(NFS_SERVER(inode), GFP_KERNEL); in nfs_lookup_revalidate_dentry()
[all …]
Dnfs4xdr.c1082 const struct nfs4_label *label, in encode_attrs() argument
1156 if (label && (attrmask[2] & FATTR4_WORD2_SECURITY_LABEL)) { in encode_attrs()
1157 len += 4 + 4 + 4 + (XDR_QUADLEN(label->len) << 2); in encode_attrs()
1186 if (label && (bmval[2] & FATTR4_WORD2_SECURITY_LABEL)) { in encode_attrs()
1187 *p++ = cpu_to_be32(label->lfs); in encode_attrs()
1188 *p++ = cpu_to_be32(label->pi); in encode_attrs()
1189 *p++ = cpu_to_be32(label->len); in encode_attrs()
1190 p = xdr_encode_opaque_fixed(p, label->label, label->len); in encode_attrs()
1250 encode_attrs(xdr, create->attrs, create->label, &create->umask, in encode_create()
1436 encode_attrs(xdr, arg->u.attrs, arg->label, &arg->umask, in encode_createmode()
[all …]
Dgetroot.c151 nfs_setsecurity(inode, fsinfo.fattr, fsinfo.fattr->label); in nfs_get_root()
Dnfs3proc.c103 struct nfs_fattr *fattr, struct nfs4_label *label, in nfs3_proc_getattr() argument
197 struct nfs4_label *label) in nfs3_proc_lookup() argument
212 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs3_proc_lookupp() argument
Dproc.c104 struct nfs_fattr *fattr, struct nfs4_label *label, in nfs_proc_getattr() argument
159 struct nfs4_label *label) in nfs_proc_lookup() argument
Dinternal.h350 memcpy(dst->label, src->label, src->len); in nfs4_label_copy()
/fs/cifs/
Dsmb2transport.c293 static int generate_key(struct cifs_ses *ses, struct kvec label, in generate_key() argument
335 label.iov_base, label.iov_len); in generate_key()
382 struct kvec label; member
412 rc = generate_key(ses, ptriplet->signing.label, in generate_smb3signingkey()
419 rc = generate_key(ses, ptriplet->signing.label, in generate_smb3signingkey()
429 rc = generate_key(ses, ptriplet->encryption.label, in generate_smb3signingkey()
435 rc = generate_key(ses, ptriplet->decryption.label, in generate_smb3signingkey()
480 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey()
481 d->label.iov_len = 12; in generate_smb30signingkey()
486 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey()
[all …]
Dcifs_debug.h17 void cifs_dump_mem(char *label, void *data, int length);
Dreaddir.c33 static void dump_cifs_file_struct(struct file *file, char *label) in dump_cifs_file_struct() argument
52 static inline void dump_cifs_file_struct(struct file *file, char *label) in dump_cifs_file_struct() argument
/fs/ksmbd/
Dauth.c669 struct kvec label; member
675 struct kvec label, struct kvec context, __u8 *key, in generate_key() argument
715 label.iov_base, in generate_key()
716 label.iov_len); in generate_key()
778 rc = generate_key(conn, sess, signing->label, signing->context, key, in generate_smb3signingkey()
800 d.label.iov_base = "SMB2AESCMAC"; in ksmbd_gen_smb30_signingkey()
801 d.label.iov_len = 12; in ksmbd_gen_smb30_signingkey()
814 d.label.iov_base = "SMBSigningKey"; in ksmbd_gen_smb311_signingkey()
815 d.label.iov_len = 14; in ksmbd_gen_smb311_signingkey()
843 rc = generate_key(conn, sess, ptwin->encryption.label, in generate_smb3encryptionkey()
[all …]
/fs/pstore/
Dram_core.c458 unsigned int memtype, char *label) in persistent_ram_iomap() argument
462 if (!request_mem_region(start, size, label ?: "ramoops")) { in persistent_ram_iomap()
464 label ?: "ramoops", in persistent_ram_iomap()
492 prz->label); in persistent_ram_buffer_map()
514 pr_warn("ECC failed %s\n", prz->label); in persistent_ram_post_init()
573 kfree(prz->label); in persistent_ram_free()
579 unsigned int memtype, u32 flags, char *label) in persistent_ram_new() argument
593 prz->label = kstrdup(label, GFP_KERNEL); in persistent_ram_new()
594 if (!prz->label) in persistent_ram_new()
606 prz->label, prz->size, (unsigned long long)prz->paddr, in persistent_ram_new()
Dram.c534 char *label; in ramoops_init_przs() local
537 label = kasprintf(GFP_KERNEL, "ramoops:%s", name); in ramoops_init_przs()
539 label = kasprintf(GFP_KERNEL, "ramoops:%s(%d/%d)", in ramoops_init_przs()
543 cxt->memtype, flags, label); in ramoops_init_przs()
544 kfree(label); in ramoops_init_przs()
575 char *label; in ramoops_init_prz() local
587 label = kasprintf(GFP_KERNEL, "ramoops:%s", name); in ramoops_init_prz()
589 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz()
590 kfree(label); in ramoops_init_prz()
/fs/xfs/
Dxfs_ioctl.c1816 char label[XFSLABEL_MAX + 1]; in xfs_ioc_getlabel() local
1822 memset(label, 0, sizeof(label)); in xfs_ioc_getlabel()
1824 strncpy(label, sbp->sb_fname, XFSLABEL_MAX); in xfs_ioc_getlabel()
1827 if (copy_to_user(user_label, label, sizeof(label))) in xfs_ioc_getlabel()
1839 char label[XFSLABEL_MAX + 1]; in xfs_ioc_setlabel() local
1851 if (copy_from_user(label, newlabel, XFSLABEL_MAX + 1)) in xfs_ioc_setlabel()
1853 len = strnlen(label, XFSLABEL_MAX + 1); in xfs_ioc_setlabel()
1863 memcpy(sbp->sb_fname, label, len); in xfs_ioc_setlabel()
/fs/nfsd/
DKconfig154 Say Y here if you want enable fine-grained security label attribute
156 SELinux and Smack to label files to facilitate enforcement of their policies.
157 Without this an NFSv4 mount will have the same label on each file.
Dvfs.c500 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument
513 host_error = security_inode_setsecctx(dentry, label->data, label->len); in nfsd4_set_nfs4_label()
519 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument
/fs/
Dreaddir.c31 #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/btrfs/
Dsysfs.c773 char *label = fs_info->super_copy->label; in btrfs_label_show() local
777 ret = scnprintf(buf, PAGE_SIZE, label[0] ? "%s\n" : "%s", label); in btrfs_label_show()
806 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
807 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
818 BTRFS_ATTR_RW(, label, btrfs_label_show, btrfs_label_store);
1068 BTRFS_ATTR_PTR(, label),
Dioctl.c4651 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_get_fslabel() local
4654 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
4657 len = strnlen(label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
4665 ret = copy_to_user(arg, label, len); in btrfs_ioctl_get_fslabel()
4677 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_set_fslabel() local
4683 if (copy_from_user(label, arg, sizeof(label))) in btrfs_ioctl_set_fslabel()
4686 if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { in btrfs_ioctl_set_fslabel()
4704 strcpy(super_block->label, label); in btrfs_ioctl_set_fslabel()
/fs/ocfs2/
Docfs1_fs_compat.h83 /*30*/ __u8 label[OCFS1_MAX_VOL_LABEL_LEN]; member
Docfs2_trace.h1711 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/
Djfs_logmgr.h66 char label[16]; /* 16: journal label */ member
/fs/ntfs3/
Dsuper.c959 UTF16_LITTLE_ENDIAN, sbi->volume.label, in ntfs_fill_super()
960 sizeof(sbi->volume.label)); in ntfs_fill_super()
962 sbi->volume.label[0] = 0; in ntfs_fill_super()

12