FROM : Gerriet M. Denkmann
DATE : Sun Jun 25 20:51:04 2006
To resume:
it might be possible to manually mount an external partition without
the nosuid option (not tried).
There are two levels of protection:
1. Finder Get Info "Ignore ownership on this volume" (does not affect
suid)
2. mounting with MNT_NOSUID flag.
What I do now:
NSSearchPathForDirectoriesInDomains( NSApplicationSupportDirectory,
NSUserDomainMask, YES );
statfs( path, buf);
check buf.f_flags & MNT_NOSUID
if not ok then use path = NSTemporaryDirectory() instead.
check again for suid. If again no good give up.
use path for my helper tool.
Gerriet.
DATE : Sun Jun 25 20:51:04 2006
To resume:
it might be possible to manually mount an external partition without
the nosuid option (not tried).
There are two levels of protection:
1. Finder Get Info "Ignore ownership on this volume" (does not affect
suid)
2. mounting with MNT_NOSUID flag.
What I do now:
NSSearchPathForDirectoriesInDomains( NSApplicationSupportDirectory,
NSUserDomainMask, YES );
statfs( path, buf);
check buf.f_flags & MNT_NOSUID
if not ok then use path = NSTemporaryDirectory() instead.
check again for suid. If again no good give up.
use path for my helper tool.
Gerriet.
| Related mails | Author | Date |
|---|---|---|
| Gerriet M. Denkman… | Jun 24, 22:33 | |
| Damien Sorresso | Jun 24, 22:55 | |
| Chris Suter | Jun 25, 10:14 | |
| Gerriet M. Denkman… | Jun 25, 10:14 | |
| Finlay Dobbie | Jun 25, 13:25 | |
| wadeslists | Jun 25, 13:45 | |
| Chris Suter | Jun 25, 13:53 | |
| Gerriet M. Denkman… | Jun 25, 20:49 | |
| Gerriet M. Denkman… | Jun 25, 20:51 | |
| Finlay Dobbie | Jun 26, 00:41 |






Cocoa mail archive

