Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 39) sorted by relevance

12

/fs/smb/server/mgmt/
Duser_config.c15 struct ksmbd_user *user = NULL; in ksmbd_login_user() local
24 user = ksmbd_alloc_user(resp); in ksmbd_login_user()
27 return user; in ksmbd_login_user()
32 struct ksmbd_user *user = NULL; in ksmbd_alloc_user() local
34 user = kmalloc(sizeof(struct ksmbd_user), GFP_KERNEL); in ksmbd_alloc_user()
35 if (!user) in ksmbd_alloc_user()
38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
39 user->flags = resp->status; in ksmbd_alloc_user()
40 user->gid = resp->gid; in ksmbd_alloc_user()
41 user->uid = resp->uid; in ksmbd_alloc_user()
[all …]
Duser_config.h23 static inline bool user_guest(struct ksmbd_user *user) in user_guest() argument
25 return user->flags & KSMBD_USER_FLAG_GUEST_ACCOUNT; in user_guest()
28 static inline void set_user_flag(struct ksmbd_user *user, int flag) in set_user_flag() argument
30 user->flags |= flag; in set_user_flag()
33 static inline int test_user_flag(struct ksmbd_user *user, int flag) in test_user_flag() argument
35 return user->flags & flag; in test_user_flag()
38 static inline void set_user_guest(struct ksmbd_user *user) in set_user_guest() argument
42 static inline char *user_passkey(struct ksmbd_user *user) in user_passkey() argument
44 return user->passkey; in user_passkey()
47 static inline char *user_name(struct ksmbd_user *user) in user_name() argument
[all …]
Dtree_connect.c74 tree_conn->user = sess->user; in ksmbd_tree_conn_connect()
Dtree_connect.h28 struct ksmbd_user *user; member
Duser_session.c147 if (sess->user) in ksmbd_session_destroy()
148 ksmbd_free_user(sess->user); in ksmbd_session_destroy()
/fs/proc/
Dstat.c111 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local
118 user = nice = system = idle = iowait = in show_stat()
131 user += cpustat[CPUTIME_USER]; in show_stat()
153 seq_put_decimal_ull(p, "cpu ", nsec_to_clock_t(user)); in show_stat()
172 user = cpustat[CPUTIME_USER]; in show_stat()
183 seq_put_decimal_ull(p, " ", nsec_to_clock_t(user)); in show_stat()
/fs/
Dopen.c703 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() argument
713 uid = make_kuid(current_user_ns(), user); in chown_common()
723 if ((user != (uid_t)-1) && !setattr_vfsuid(&newattrs, uid)) in chown_common()
748 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() argument
768 error = chown_common(&path, user, group); in do_fchownat()
780 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, in SYSCALL_DEFINE5() argument
783 return do_fchownat(dfd, filename, user, group, flag); in SYSCALL_DEFINE5()
786 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
788 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
791 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
[all …]
Dpipe.c755 unsigned long account_pipe_buffers(struct user_struct *user, in account_pipe_buffers() argument
758 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()
784 struct user_struct *user = get_current_user(); in alloc_pipe_info() local
795 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
798 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()
815 pipe->user = user; in alloc_pipe_info()
821 (void) account_pipe_buffers(user, pipe_bufs, 0); in alloc_pipe_info()
824 free_uid(user); in alloc_pipe_info()
837 (void) account_pipe_buffers(pipe->user, pipe->nr_accounted, 0); in free_pipe_info()
838 free_uid(pipe->user); in free_pipe_info()
[all …]
Deventpoll.c215 struct user_struct *user; member
710 free_uid(ep->user); in ep_free()
775 percpu_counter_dec(&ep->user->epoll_watches); in __ep_remove()
981 struct user_struct *user; in ep_alloc() local
984 user = get_current_user(); in ep_alloc()
997 ep->user = user; in ep_alloc()
1005 free_uid(user); in ep_alloc()
1506 if (unlikely(percpu_counter_compare(&ep->user->epoll_watches, in ep_insert()
1509 percpu_counter_inc(&ep->user->epoll_watches); in ep_insert()
1512 percpu_counter_dec(&ep->user->epoll_watches); in ep_insert()
[all …]
Dinternal.h144 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
146 int chown_common(const struct path *path, uid_t user, gid_t group);
Dinit.c82 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags) in init_chown() argument
93 error = chown_common(&path, user, group); in init_chown()
/fs/smb/client/
Dcifsencrypt.c410 __le16 *user; in calc_ntlmv2_hash() local
437 user = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash()
438 if (user == NULL) { in calc_ntlmv2_hash()
444 len = cifs_strtoUTF16(user, ses->user_name, len, nls_cp); in calc_ntlmv2_hash()
445 UniStrupr(user); in calc_ntlmv2_hash()
447 *(u16 *)user = 0; in calc_ntlmv2_hash()
451 (char *)user, 2 * len); in calc_ntlmv2_hash()
452 kfree(user); in calc_ntlmv2_hash()
DKconfig41 support for DFS (hierarchical name space), secure per-user
100 CIFS maps the name of extended attributes beginning with the user
102 servers without the user namespace prefix, but their names are
103 seen by Linux cifs clients prefaced by the user namespace prefix.
/fs/coda/
DKconfig15 *client*. You will need user level code as well, both for the
16 client and server. Servers are currently user level, i.e. they need
/fs/smb/server/
Dauth.c139 user_passkey(sess->user), in calc_ntlmv2_hash()
153 len = strlen(user_name(sess->user)); in calc_ntlmv2_hash()
160 conv_len = smb_strtoUTF16(uniname, user_name(sess->user), len, in calc_ntlmv2_hash()
513 struct ksmbd_user *user = NULL; in ksmbd_krb5_authenticate() local
541 user = ksmbd_alloc_user(&resp->login_response); in ksmbd_krb5_authenticate()
542 if (!user) { in ksmbd_krb5_authenticate()
547 sess->user = user; in ksmbd_krb5_authenticate()
DKconfig32 You also need to install user space programs which can be found
42 smb3 encryption, copy-offload, secure per-user session
Dsmb2pdu.c610 struct ksmbd_user *user, u64 id) in destroy_previous_session() argument
620 prev_user = prev_sess->user; in destroy_previous_session()
623 strcmp(user->name, prev_user->name) || in destroy_previous_session()
624 user->passkey_sz != prev_user->passkey_sz || in destroy_previous_session()
625 memcmp(user->passkey, prev_user->passkey, user->passkey_sz)) in destroy_previous_session()
1411 struct ksmbd_user *user; in session_user() local
1440 user = ksmbd_login_user(name); in session_user()
1442 return user; in session_user()
1452 struct ksmbd_user *user; in ntlm_authenticate() local
1473 user = session_user(conn, req); in ntlm_authenticate()
[all …]
Dtransport_ipc.c216 if (user_guest(sess->user)) in rpc_context_flags()
560 if (strlen(user_name(sess->user)) >= KSMBD_REQ_MAX_ACCOUNT_NAME_SZ) in ksmbd_ipc_tree_connect_request()
574 req->account_flags = sess->user->flags; in ksmbd_ipc_tree_connect_request()
577 strscpy(req->account, user_name(sess->user), KSMBD_REQ_MAX_ACCOUNT_NAME_SZ); in ksmbd_ipc_tree_connect_request()
/fs/autofs/
DKconfig20 automounter (amd), which is a pure user space daemon.
22 To use the automounter you need the user-space tools from
Ddev-ioctl.c594 struct autofs_dev_ioctl __user *user) in _autofs_dev_ioctl() argument
620 param = copy_dev_ioctl(user); in _autofs_dev_ioctl()
681 if (err >= 0 && copy_to_user(user, param, AUTOFS_DEV_IOCTL_SIZE)) in _autofs_dev_ioctl()
/fs/quota/
DKconfig11 If you say Y here, you will be able to set per user limits for disk
20 multi user systems. If unsure, say N.
/fs/nfsd/
DKconfig18 You may choose to use a user-space NFS server instead, in which
22 user space programs which can be found in the Linux nfs-utils
75 To export files using NFSv4, you need to install additional user
/fs/dlm/
DMakefile18 user.o \
/fs/notify/dnotify/
DKconfig8 that uses signals to communicate events to user-space. There exist
/fs/exfat/
DKconfig19 converting between the encoding that is used for user visible

12