Home
last modified time | relevance | path

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

/fs/cifs/
Dsmb2transport.c228 static int generate_key(struct cifs_ses *ses, struct kvec label, in generate_key() argument
268 label.iov_base, label.iov_len); in generate_key()
309 struct kvec label; member
325 rc = generate_key(ses, ptriplet->signing.label, in generate_smb3signingkey()
331 rc = generate_key(ses, ptriplet->encryption.label, in generate_smb3signingkey()
337 return generate_key(ses, ptriplet->decryption.label, in generate_smb3signingkey()
350 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey()
351 d->label.iov_len = 12; in generate_smb30signingkey()
356 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey()
357 d->label.iov_len = 11; in generate_smb30signingkey()
[all …]
Dcifs_debug.h25 void cifs_dump_mem(char *label, void *data, int length);
Dcifs_debug.c35 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()
Dreaddir.c44 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/nfs/
Dinode.c299 struct nfs4_label *label) in nfs_setsecurity() argument
303 if (label == NULL) in nfs_setsecurity()
307 error = security_inode_notifysecctx(inode, label->label, in nfs_setsecurity()
308 label->len); in nfs_setsecurity()
313 (char *)label->label, in nfs_setsecurity()
314 label->len, error); in nfs_setsecurity()
321 struct nfs4_label *label = NULL; in nfs4_label_alloc() local
325 return label; in nfs4_label_alloc()
328 return label; in nfs4_label_alloc()
330 label = kzalloc(sizeof(struct nfs4_label), flags); in nfs4_label_alloc()
[all …]
Dnfs4proc.c92 …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);
108 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument
112 if (label == NULL) in nfs4_label_init_security()
119 &dentry->d_name, (void **)&label->label, &label->len); in nfs4_label_init_security()
121 return label; in nfs4_label_init_security()
126 nfs4_label_release_security(struct nfs4_label *label) in nfs4_label_release_security() argument
128 if (label) in nfs4_label_release_security()
129 security_release_secctx(label->label, label->len); in nfs4_label_release_security()
131 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument
[all …]
Dinternal.h311 memcpy(dst->label, src->label, src->len); in nfs4_label_copy()
315 static inline void nfs4_label_free(struct nfs4_label *label) in nfs4_label_free() argument
317 if (label) { in nfs4_label_free()
318 kfree(label->label); in nfs4_label_free()
319 kfree(label); in nfs4_label_free()
331 static inline void nfs4_label_free(void *label) {} in nfs4_label_free() argument
Ddir.c533 nfs_setsecurity(d_inode(dentry), entry->fattr, entry->label); in nfs_prime_dcache()
547 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); in nfs_prime_dcache()
665 entry.label = nfs4_label_alloc(NFS_SERVER(inode), GFP_NOWAIT); in nfs_readdir_xdr_to_array()
666 if (IS_ERR(entry.label)) { in nfs_readdir_xdr_to_array()
667 status = PTR_ERR(entry.label); in nfs_readdir_xdr_to_array()
702 nfs4_label_free(entry.label); in nfs_readdir_xdr_to_array()
1132 struct nfs4_label *label = NULL; in nfs_lookup_revalidate() local
1193 label = nfs4_label_alloc(NFS_SERVER(inode), GFP_NOWAIT); in nfs_lookup_revalidate()
1194 if (IS_ERR(label)) in nfs_lookup_revalidate()
1198 error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, label); in nfs_lookup_revalidate()
[all …]
Dnfs4xdr.c1004 const struct nfs4_label *label, in encode_attrs() argument
1080 label = NULL; in encode_attrs()
1083 if (label) { in encode_attrs()
1084 len += 4 + 4 + 4 + (XDR_QUADLEN(label->len) << 2); in encode_attrs()
1127 *p++ = cpu_to_be32(label->lfs); in encode_attrs()
1128 *p++ = cpu_to_be32(label->pi); in encode_attrs()
1129 *p++ = cpu_to_be32(label->len); in encode_attrs()
1130 p = xdr_encode_opaque_fixed(p, label->label, label->len); in encode_attrs()
1186 encode_attrs(xdr, create->attrs, create->label, create->server, false); in encode_create()
1406 encode_attrs(xdr, arg->u.attrs, arg->label, arg->server, false); in encode_createmode()
[all …]
Dproc.c101 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs_proc_getattr() argument
150 struct nfs4_label *label) in nfs_proc_lookup() argument
Dnfs3proc.c103 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs3_proc_getattr() argument
149 struct nfs4_label *label) in nfs3_proc_lookup() argument
/fs/btrfs/
Dsysfs.c371 char *label = fs_info->super_copy->label; in btrfs_label_show() local
375 ret = snprintf(buf, PAGE_SIZE, label[0] ? "%s\n" : "%s", label); in btrfs_label_show()
404 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
405 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
416 BTRFS_ATTR_RW(label, btrfs_label_show, btrfs_label_store);
451 BTRFS_ATTR_PTR(label),
Dioctl.c5287 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_get_fslabel() local
5290 memcpy(label, root->fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
5293 len = strnlen(label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
5300 ret = copy_to_user(arg, label, len); in btrfs_ioctl_get_fslabel()
5310 char label[BTRFS_LABEL_SIZE]; in btrfs_ioctl_set_fslabel() local
5316 if (copy_from_user(label, arg, sizeof(label))) in btrfs_ioctl_set_fslabel()
5319 if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { in btrfs_ioctl_set_fslabel()
5337 strcpy(super_block->label, label); in btrfs_ioctl_set_fslabel()
Dvolumes.c1108 if ((*disk_super)->label[0] && in btrfs_read_disk_super()
1109 (*disk_super)->label[BTRFS_LABEL_SIZE - 1]) in btrfs_read_disk_super()
1110 (*disk_super)->label[BTRFS_LABEL_SIZE - 1] = '\0'; in btrfs_read_disk_super()
1157 if (disk_super->label[0]) { in btrfs_scan_one_device()
1158 pr_info("BTRFS: device label %s ", disk_super->label); in btrfs_scan_one_device()
Dctree.h235 char label[BTRFS_LABEL_SIZE]; member
/fs/nfsd/
DKconfig138 Say Y here if you want enable fine-grained security label attribute
140 SELinux and Smack to label files to facilitate enforcement of their policies.
141 Without this an NFSv4 mount will have the same label on each file.
Dvfs.c515 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument
528 host_error = security_inode_setsecctx(dentry, label->data, label->len); in nfsd4_set_nfs4_label()
534 struct xdr_netobj *label) in nfsd4_set_nfs4_label() argument
Dnfs4proc.c53 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
60 label->data, label->len); in nfsd4_security_inode_setsecctx()
75 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
Dnfs4xdr.c288 struct xdr_netobj *label) in nfsd4_decode_fattr() argument
415 label->len = 0; in nfsd4_decode_fattr()
432 label->len = dummy32; in nfsd4_decode_fattr()
433 label->data = svcxdr_dupstr(argp, buf, dummy32); in nfsd4_decode_fattr()
434 if (!label->data) in nfsd4_decode_fattr()
/fs/ocfs2/
Docfs1_fs_compat.h98 /*30*/ __u8 label[OCFS1_MAX_VOL_LABEL_LEN]; member
Docfs2_trace.h1706 TP_PROTO(char *label, char *uuid_str, unsigned long long root_dir,
1708 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits),
1710 __string(label, label)
1717 __assign_str(label, label);
1723 TP_printk("%s %s %llu %llu %d", __get_str(label), __get_str(uuid_str),
/fs/jfs/
Djfs_logmgr.h77 char label[16]; /* 16: journal label */ member
/fs/reiserfs/
DREADME12 want it to be owned by Hans Reiser, put your copyright label on that
/fs/ext4/
Dnamei.c577 static void dx_show_index(char * label, struct dx_entry *entries) in dx_show_index() argument
580 printk(KERN_DEBUG "%s index", label); in dx_show_index()