| From | Sent On | Attachments |
|---|---|---|
| Robert Watson | Aug 27, 2000 8:30 am | |
| Robert Watson | Aug 28, 2000 9:43 am | |
| Poul-Henning Kamp | Aug 28, 2000 9:59 am | |
| Robert Watson | Aug 28, 2000 10:05 am | |
| Poul-Henning Kamp | Aug 28, 2000 10:19 am | |
| Robert Watson | Aug 28, 2000 10:35 am | |
| Boris Popov | Aug 28, 2000 6:14 pm |
| Subject: | Re: procfs_lookup() and jail interaction | |
|---|---|---|
| From: | Robert Watson (rwat...@FreeBSD.org) | |
| Date: | Aug 28, 2000 9:43:17 am | |
| List: | org.freebsd.freebsd-fs | |
So I've largely resolved these concerns -- as a synthetic in-memory file system, procfs is not using the name cache -- the issue I'm running into now in procfs is with the open() syscall. Following the p_stuff patches, procfs_getattrt() and so on all return ENOENT. However, an attempt to call open(/proc/1, O_CREAT) results in an EISDIR error, instead of EROFS. I believe this may be a result of that type check happening in vn_open, above the VFS layer, resulting in procfs_* never seeing the request, and thereby revealing the presence of the directory. You can replicate this simply by calling, ``touch /proc/1'' with kern.ps_showallprocs set to 0. It should be the same if you apply the p_stuff.diff patch previously advertised on -security, which cleans up a number of inter-process authorization checks, as well as vaccess().
Robert N M Watson
rob...@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message





