summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Lock p->p_textvp before calling vn_fullpath() on it. Note therwatson2004-01-071-0/+2
| | | | | | | | potential lock order concern due to the vnode lock held simultaneously by the caller into procfs. Reported by: kuriyama Approved by: des
* Minor whitespace and style issues.des2003-12-071-8/+5
|
* Add a proc lock assertion and move another assertion up to the top of thejhb2003-04-171-2/+4
| | | | function.
* Slightly change the semantics of vnode labels for MAC: rather thanrwatson2002-10-261-1/+0
| | | | | | | | | | | | | | | | | | | | | "refreshing" the label on the vnode before use, just get the label right from inception. For single-label file systems, set the label in the generic VFS getnewvnode() code; for multi-label file systems, leave the labeling up to the file system. With UFS1/2, this means reading the extended attribute during vfs_vget() as the inode is pulled off disk, rather than hitting the extended attributes frequently during operations later, improving performance. This also corrects sematics for shared vnode locks, which were not previously present in the system. This chances the cache coherrency properties WRT out-of-band access to label data, but in an acceptable form. With UFS1, there is a small race condition during automatic extended attribute start -- this is not present with UFS2, and occurs because EAs aren't available at vnode inception. We'll introduce a work around for this shortly. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Remove even more '&' from pointers to functions.phk2002-10-201-26/+26
| | | | Spotted by: FlexeLint
* Introduce support for Mandatory Access Control and extensiblerwatson2002-08-011-0/+1
| | | | | | | | | | | kernel access control. Modify procfs so that (when mounted multilabel) it exports process MAC labels as the vnode labels of procfs vnodes associated with processes. Approved by: des Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Change p_can{debug,see,sched,signal}()'s first argument to be a threadjhb2002-05-191-1/+3
| | | | | | | pointer instead of a proc pointer and require the process pointed to by the second argument to be locked. We now use the thread ucred reference for the credential checks in p_can*() as a result. p_canfoo() should now no longer need Giant.
* Paranoia: if the process is setugid, set all sensitive files mode 0.des2002-02-181-1/+3
|
* Fix various bugs in the debugging code and reenable it.des2001-12-091-2/+0
|
* Fix a KSEfication brain-o in procfs_doprocfile(): return the path of the ↵des2001-12-081-3/+3
| | | | | | | | | target process, not the calling process. While we're here, also unstaticize procfs_doprocfile() and procfs_docurproc() so linprocfs can call them directly instead of duplicating them. Submitted by: Dominic Mitchell <dom@semantico.com>
* Pseudofsize procfs(5).des2001-12-041-0/+198
OpenPOWER on IntegriCloud