Posted by Anonymous on Wed 6th Sep 17:05
download | new post
- int
- gr_pid_is_chrooted(struct task_struct *p)
- {
- #ifdef CONFIG_GRKERNSEC_CHROOT_FINDTASK
- if (!grsec_enable_chroot_findtask || !proc_is_chrooted(current) || !p || current->vxi == NULL)
- return 0;
- task_lock(p);
- if ((p->exit_state & (EXIT_ZOMBIE | EXIT_DEAD)) ||
- !have_same_root(current, p)) {
- task_unlock(p);
- return 1;
- }
- task_unlock(p);
- #endif
- return 0;
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
