博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
进程创建时安全计算处理
阅读量:4151 次
发布时间:2019-05-25

本文共 961 字,大约阅读时间需要 3 分钟。

 
static void copy_seccomp(struct task_struct *p){#ifdef CONFIG_SECCOMP /*  * Must be called with sighand->lock held, which is common to  * all threads in the group. Holding cred_guard_mutex is not  * needed because this new task is not yet running and cannot  * be racing exec.  */ assert_spin_locked(&current->sighand->siglock);  /* Ref-count the new filter user, and assign it. */ get_seccomp_filter(current); p->seccomp = current->seccomp;  /*  * Explicitly enable no_new_privs here in case it got set  * between the task_struct being duplicated and holding the  * sighand lock. The seccomp state and nnp must be in sync.  */ if (task_no_new_privs(current))  task_set_no_new_privs(p);  /*  * If the parent gained a seccomp mode after copying thread  * flags and between before we held the sighand lock, we have  * to manually enable the seccomp thread flag here.  */ if (p->seccomp.mode != SECCOMP_MODE_DISABLED)  set_tsk_thread_flag(p, TIF_SECCOMP);#endif}

转载地址:http://zkhti.baihongyu.com/

你可能感兴趣的文章
解决Rhythmbox乱码
查看>>
豆瓣爱问共享资料插件发布啦
查看>>
Ubuntu10.10 CAJView安装 读取nh\kdh\caj文件 成功
查看>>
kermit的安装和配置
查看>>
vim 配置
查看>>
openocd zylin
查看>>
进程创建时文件系统处理
查看>>
进程创建时信号处理函数处理
查看>>
进程创建时信号处理
查看>>
进程创建时内存描述符处理
查看>>
进程创建时命名空间处理
查看>>
进程创建时IO处理
查看>>
进程创建时线程栈处理
查看>>
进程创建时pid分配
查看>>
进程创建时安全计算处理
查看>>
进程创建时cgroup处理
查看>>
进程创建时共享内存处理
查看>>
idle进程创建
查看>>
内核线程创建
查看>>
linux elf tool readelf
查看>>