Searched refs:cred (Results 76 - 100 of 336) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dnfs_fs.h85 const struct cred *cred; member in struct:nfs_open_context
86 struct rpc_cred __rcu *ll_cred; /* low-level cred - use to check for expiry */
286 #define NFS_INO_INVALID_ACCESS BIT(3) /* cached access cred invalid */
425 extern void nfs_access_add_cache(struct inode *, struct nfs_access_entry *, const struct cred *);
441 extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred, fmode_t mode);
525 static inline const struct cred *nfs_file_cred(struct file *file)
531 return ctx->cred;
560 extern int nfs_may_open(struct inode *inode, const struct cred *cre
[all...]
H A Dbinfmts.h49 struct cred *cred; /* new credentials */ member in struct:linux_binprm
H A Daudit.h415 const struct cred *new,
416 const struct cred *old);
417 extern void __audit_log_capset(const struct cred *new, const struct cred *old);
495 const struct cred *new,
496 const struct cred *old)
503 static inline void audit_log_capset(const struct cred *new,
504 const struct cred *old)
666 const struct cred *new,
667 const struct cred *ol
[all...]
/linux-master/net/sunrpc/
H A Dauth_null.c43 * Destroy cred handle.
46 nul_destroy_cred(struct rpc_cred *cred) argument
51 * Match cred handle against current process
54 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) argument
H A Dsvcauth_unix.c675 struct svc_cred *cred = &rqstp->rq_cred; local
722 gi = unix_gid_find(cred->cr_uid, rqstp);
731 put_group_info(cred->cr_group_info);
732 cred->cr_group_info = gi;
757 struct svc_cred *cred = &rqstp->rq_cred; local
778 cred->cr_uid = INVALID_UID;
779 cred->cr_gid = INVALID_GID;
780 cred->cr_group_info = groups_alloc(0);
781 if (cred->cr_group_info == NULL)
834 struct svc_cred *cred local
919 struct svc_cred *cred = &rqstp->rq_cred; local
[all...]
/linux-master/kernel/
H A Dsys.c66 #include <linux/cred.h>
189 const struct cred *cred = current_cred(), *pcred = __task_cred(p); local
191 if (uid_eq(pcred->uid, cred->euid) ||
192 uid_eq(pcred->euid, cred->euid))
231 const struct cred *cred = current_cred(); local
268 uid = make_kuid(cred->user_ns, who);
269 user = cred->user;
271 uid = cred
301 const struct cred *cred = current_cred(); local
758 const struct cred *cred = current_cred(); local
847 const struct cred *cred = current_cred(); local
1674 const struct cred *cred = current_cred(), *tcred; local
[all...]
H A Dcapability.c225 struct cred *new;
514 const struct cred *cred; local
517 cred = rcu_dereference(tsk->ptracer_cred);
518 if (cred)
519 ret = security_capable(cred, ns, CAP_SYS_PTRACE,
H A Dwatch_queue.c25 #include <linux/cred.h>
185 * @cred: The creds of the process that triggered the notification.
196 const struct cred *cred,
221 if (security_post_notification(watch->cred, cred, n) < 0)
419 atomic_dec(&watch->cred->user->nr_watches);
420 put_cred(watch->cred);
456 const struct cred *cred; local
194 __post_watch_notification(struct watch_list *wlist, struct watch_notification *n, const struct cred *cred, u64 id) argument
[all...]
/linux-master/fs/
H A Dinternal.h99 struct file *alloc_empty_file(int flags, const struct cred *cred);
100 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred);
101 struct file *alloc_empty_backing_file(int flags, const struct cred *cred);
H A Dopen.c383 const struct cred *cred; local
388 cred = current_cred();
389 if (!uid_eq(cred->fsuid, cred->uid) ||
390 !gid_eq(cred->fsgid, cred->gid))
394 kuid_t root_uid = make_kuid(cred->user_ns, 0);
395 if (!uid_eq(cred->uid, root_uid)) {
396 if (!cap_isclear(cred
1092 dentry_open(const struct path *path, int flags, const struct cred *cred) argument
1130 dentry_create(const struct path *path, int flags, umode_t mode, const struct cred *cred) argument
1166 kernel_file_open(const struct path *path, int flags, const struct cred *cred) argument
[all...]
/linux-master/security/selinux/
H A Dhooks.c223 static inline u32 cred_sid(const struct cred *cred) argument
227 tsec = selinux_cred(cred);
426 const struct cred *cred)
428 const struct task_security_struct *tsec = selinux_cred(cred);
443 const struct cred *cred)
445 const struct task_security_struct *tsec = selinux_cred(cred);
628 const struct cred *cre local
424 may_context_mount_sb_relabel(u32 sid, struct superblock_security_struct *sbsec, const struct cred *cred) argument
441 may_context_mount_inode_relabel(u32 sid, struct superblock_security_struct *sbsec, const struct cred *cred) argument
1619 cred_has_capability(const struct cred *cred, int cap, unsigned int opts, bool initns) argument
1657 inode_has_perm(const struct cred *cred, struct inode *inode, u32 perms, struct common_audit_data *adp) argument
1677 dentry_has_perm(const struct cred *cred, struct dentry *dentry, u32 av) argument
1693 path_has_perm(const struct cred *cred, const struct path *path, u32 av) argument
1707 file_path_has_perm(const struct cred *cred, struct file *file, u32 av) argument
1730 file_has_perm(const struct cred *cred, struct file *file, u32 av) argument
1939 superblock_has_perm(const struct cred *cred, const struct super_block *sb, u32 perms, struct common_audit_data *ad) argument
2136 selinux_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts) argument
2144 const struct cred *cred = current_cred(); local
2179 const struct cred *cred = current_cred(); local
2420 flush_unauthorized_files(const struct cred *cred, struct files_struct *files) argument
2739 const struct cred *cred = current_cred(); local
2749 const struct cred *cred = current_cred(); local
2763 const struct cred *cred = current_cred(); local
2775 const struct cred *cred = current_cred(); local
2782 const struct cred *cred = current_cred(); local
3058 const struct cred *cred = current_cred(); local
3137 const struct cred *cred = current_cred(); local
3170 const struct cred *cred = current_cred(); local
3333 const struct cred *cred = current_cred(); local
3340 const struct cred *cred = current_cred(); local
3610 const struct cred *cred = current_cred(); local
3656 ioctl_has_perm(const struct cred *cred, struct file *file, u32 requested, u16 cmd) argument
3696 const struct cred *cred = current_cred(); local
3771 const struct cred *cred = current_cred(); local
3844 const struct cred *cred = current_cred(); local
3876 const struct cred *cred = current_cred(); local
3884 const struct cred *cred = current_cred(); local
3953 const struct cred *cred = current_cred(); local
4187 selinux_task_prlimit(const struct cred *cred, const struct cred *tcred, unsigned int flags) argument
4236 selinux_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred) argument
4266 selinux_userns_create(const struct cred *cred) argument
6664 selinux_key_alloc(struct key *k, const struct cred *cred, unsigned long flags) argument
6692 selinux_key_permission(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm) argument
[all...]
/linux-master/fs/proc/
H A Darray.c155 const struct cred *cred; local
169 cred = get_task_cred(p);
189 seq_put_decimal_ull(m, "\nUid:\t", from_kuid_munged(user_ns, cred->uid));
190 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->euid));
191 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->suid));
192 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid));
193 seq_put_decimal_ull(m, "\nGid:\t", from_kgid_munged(user_ns, cred->gid));
194 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->egid));
195 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred
313 const struct cred *cred; local
[all...]
/linux-master/security/apparmor/
H A Dmount.c18 #include "include/cred.h"
116 * @subj_cred: cred of the subject
132 static int audit_mount(const struct cred *subj_cred,
290 * @subj_cred: cred of confined subject
303 static int match_mnt_path_str(const struct cred *subj_cred,
352 * @subj_cred: cred of the subject
365 static int match_mnt(const struct cred *subj_cred,
394 int aa_remount(const struct cred *subj_cred,
420 int aa_bind_mount(const struct cred *subj_cred,
458 int aa_mount_change_type(const struct cred *subj_cre
[all...]
H A Dresource.c15 #include "include/cred.h"
46 * @subj_cred: cred setting the resource
56 static int audit_resource(const struct cred *subj_cred,
88 static int profile_setrlimit(const struct cred *subj_cred,
105 * @subj_cred: cred setting the limit
115 int aa_task_setrlimit(const struct cred *subj_cred, struct aa_label *label,
/linux-master/fs/overlayfs/
H A Dfile.c6 #include <linux/cred.h>
34 const struct cred *old_cred;
185 const struct cred *old_cred;
266 .cred = ovl_creds(file_inode(file)->i_sb),
293 .cred = ovl_creds(inode->i_sb),
333 .cred = ovl_creds(file_inode(in)->i_sb),
363 .cred = ovl_creds(inode->i_sb),
388 const struct cred *old_cred;
415 .cred = ovl_creds(file_inode(file)->i_sb),
427 const struct cred *old_cre
[all...]
/linux-master/include/linux/sunrpc/
H A Dsvc_xprt.h78 const struct cred *xpt_cred;
140 int flags, const struct cred *cred);
144 const struct cred *cred);
/linux-master/fs/nfs/
H A Dnfs4proc.c98 static int nfs4_do_setattr(struct inode *inode, const struct cred *cred,
103 const struct cred *cred,
107 const struct cred *);
109 const struct cred *, bool);
382 const struct cred *cred)
386 ops->test_and_free_expired(server, stateid, cred);
391 const struct cred *cre
380 nfs4_test_and_free_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
389 __nfs4_free_revoked_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
397 nfs4_free_revoked_stateid(struct nfs_server *server, const nfs4_stateid *stateid, const struct cred *cred) argument
826 nfs4_probe_sequence(struct nfs_client *client, const struct cred *cred, struct nfs4_slot *slot) argument
2658 nfs4_opendata_access(const struct cred *cred, struct nfs4_opendata *opendata, struct nfs4_state *state, fmode_t fmode) argument
2827 nfs40_test_and_free_expired_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
2835 nfs41_test_and_free_expired_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
2871 const struct cred *cred = NULL; local
2941 const struct cred *cred = lsp->ls_state->owner->so_cred; local
2985 const struct cred *cred = state->owner->so_cred; local
3154 const struct cred *cred = ctx->cred; local
3315 _nfs4_do_setattr(struct inode *inode, struct nfs_setattrargs *arg, struct nfs_setattrres *res, const struct cred *cred, struct nfs_open_context *ctx) argument
3374 nfs4_do_setattr(struct inode *inode, const struct cred *cred, struct nfs_fattr *fattr, struct iattr *sattr, struct nfs_open_context *ctx, struct nfs4_label *ilabel) argument
4048 const struct cred *cred; local
4408 const struct cred *cred = NULL; local
4622 _nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry, const struct cred *cred) argument
4657 nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry, const struct cred *cred) argument
5799 nfs4_proc_async_renew(struct nfs_client *clp, const struct cred *cred, unsigned renew_flags) argument
5823 nfs4_proc_renew(struct nfs_client *clp, const struct cred *cred) argument
6471 nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short port, const struct cred *cred, struct nfs4_setclientid_res *res) argument
6544 nfs4_proc_setclientid_confirm(struct nfs_client *clp, struct nfs4_setclientid_res *arg, const struct cred *cred) argument
6695 _nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync) argument
6770 nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync) argument
8091 _nfs40_proc_get_locations(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs4_fs_locations *locations, struct page *page, const struct cred *cred) argument
8148 _nfs41_proc_get_locations(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs4_fs_locations *locations, struct page *page, const struct cred *cred) argument
8219 nfs4_proc_get_locations(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs4_fs_locations *locations, struct page *page, const struct cred *cred) argument
8255 _nfs40_proc_fsid_present(struct inode *inode, const struct cred *cred) argument
8301 _nfs41_proc_fsid_present(struct inode *inode, const struct cred *cred) argument
8348 nfs4_proc_fsid_present(struct inode *inode, const struct cred *cred) argument
8410 const struct cred *cred = NULL; local
8526 nfs4_proc_bind_one_conn_to_session(struct rpc_clnt *clnt, struct rpc_xprt *xprt, struct nfs_client *clp, const struct cred *cred) argument
8592 const struct cred *cred; member in struct:rpc_bind_conn_calldata
8605 nfs4_proc_bind_conn_to_session(struct nfs_client *clp, const struct cred *cred) argument
8771 nfs4_run_exchange_id(struct nfs_client *clp, const struct cred *cred, u32 sp4_how, struct rpc_xprt *xprt) argument
8869 _nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred, u32 sp4_how) argument
8940 nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred) argument
9013 _nfs4_proc_destroy_clientid(struct nfs_client *clp, const struct cred *cred) argument
9032 nfs4_proc_destroy_clientid(struct nfs_client *clp, const struct cred *cred) argument
9054 const struct cred *cred; local
9273 _nfs4_proc_create_session(struct nfs_client *clp, const struct cred *cred) argument
9327 nfs4_proc_create_session(struct nfs_client *clp, const struct cred *cred) argument
9364 nfs4_proc_destroy_session(struct nfs4_session *session, const struct cred *cred) argument
9462 _nfs41_proc_sequence(struct nfs_client *clp, const struct cred *cred, struct nfs4_slot *slot, bool is_privileged) argument
9506 nfs41_proc_async_sequence(struct nfs_client *clp, const struct cred *cred, unsigned renew_flags) argument
9522 nfs4_proc_sequence(struct nfs_client *clp, const struct cred *cred) argument
9616 nfs41_proc_reclaim_complete(struct nfs_client *clp, const struct cred *cred) argument
9961 _nfs4_proc_getdeviceinfo(struct nfs_server *server, struct pnfs_device *pdev, const struct cred *cred) argument
9994 nfs4_proc_getdeviceinfo(struct nfs_server *server, struct pnfs_device *pdev, const struct cred *cred) argument
10142 const struct cred *cred = NULL; local
10269 _nfs41_test_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
10330 nfs41_test_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
10398 nfs41_free_stateid(struct nfs_server *server, const nfs4_stateid *stateid, const struct cred *cred, bool privileged) argument
10445 const struct cred *cred = lsp->ls_state->owner->so_cred; local
[all...]
H A Dpnfs_dev.c99 const struct cred *cred, gfp_t gfp_flags)
142 rc = nfs4_proc_getdeviceinfo(server, pdev, cred);
189 const struct nfs4_deviceid *id, const struct cred *cred,
199 new = nfs4_get_device_info(server, id, cred, gfp_mask);
97 nfs4_get_device_info(struct nfs_server *server, const struct nfs4_deviceid *dev_id, const struct cred *cred, gfp_t gfp_flags) argument
188 nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, const struct cred *cred, gfp_t gfp_mask) argument
H A Dnfs3client.c100 .cred = mds_srv->cred,
/linux-master/fs/ecryptfs/
H A Dkthread.c111 * @cred: credential to use for this call
120 const struct cred *cred)
135 (*lower_file) = dentry_open(&req.path, flags, cred);
117 ecryptfs_privileged_open(struct file **lower_file, struct dentry *lower_dentry, struct vfsmount *lower_mnt, const struct cred *cred) argument
/linux-master/net/dns_resolver/
H A Ddns_query.c40 #include <linux/cred.h>
81 const struct cred *saved_cred;
/linux-master/security/apparmor/include/
H A Dnet.h100 int aa_af_perm(const struct cred *subj_cred, struct aa_label *label,
113 int aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label,
/linux-master/include/rdma/
H A Dib.h11 #include <linux/cred.h>
/linux-master/fs/verity/
H A Dsignature.c18 #include <linux/cred.h>
/linux-master/security/integrity/platform_certs/
H A Dkeyring_handler.c5 #include <linux/cred.h>

Completed in 382 milliseconds

1234567891011>>