Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 7 of 7) sorted by relevance

/kernel/
Dfork.c681 struct fs_struct *fs = kmem_cache_alloc(fs_cachep, GFP_KERNEL); in __copy_fs_struct() local
683 if (fs) { in __copy_fs_struct()
684 atomic_set(&fs->count, 1); in __copy_fs_struct()
685 rwlock_init(&fs->lock); in __copy_fs_struct()
686 fs->umask = old->umask; in __copy_fs_struct()
688 fs->root = old->root; in __copy_fs_struct()
690 fs->pwd = old->pwd; in __copy_fs_struct()
694 return fs; in __copy_fs_struct()
707 atomic_inc(&current->fs->count); in copy_fs()
710 tsk->fs = __copy_fs_struct(current->fs); in copy_fs()
[all …]
Dexec_domain.c148 if (atomic_read(&current->fs->count) != 1) { in __set_personality()
151 fsp = copy_fs_struct(current->fs); in __set_personality()
158 ofsp = current->fs; in __set_personality()
159 current->fs = fsp; in __set_personality()
Dexit.c437 struct fs_struct *fs; in daemonize() local
474 fs = init_task.fs; in daemonize()
475 current->fs = fs; in daemonize()
476 atomic_inc(&fs->count); in daemonize()
576 void put_fs_struct(struct fs_struct *fs) in put_fs_struct() argument
579 if (atomic_dec_and_test(&fs->count)) { in put_fs_struct()
580 path_put(&fs->root); in put_fs_struct()
581 path_put(&fs->pwd); in put_fs_struct()
582 kmem_cache_free(fs_cachep, fs); in put_fs_struct()
588 struct fs_struct * fs = tsk->fs; in exit_fs() local
[all …]
Dnsproxy.c144 new_ns = create_new_namespaces(flags, tsk, tsk->fs); in copy_namespaces()
188 new_fs ? new_fs : current->fs); in unshare_nsproxy_namespaces()
Dacct.c486 mm_segment_t fs; in do_acct_process() local
568 fs = get_fs(); in do_acct_process()
578 set_fs(fs); in do_acct_process()
Dauditsc.c1838 read_lock(&current->fs->lock); in __audit_getname()
1839 context->pwd = current->fs->pwd; in __audit_getname()
1840 path_get(&current->fs->pwd); in __audit_getname()
1841 read_unlock(&current->fs->lock); in __audit_getname()
Dsys.c1703 mask = xchg(&current->fs->umask, mask & S_IRWXUGO); in SYSCALL_DEFINE1()