diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-08-02 03:12:40 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-08-02 03:12:40 +0000 |
| commit | 67d722ed736f30d6adaa963c824bf719069f2fad (patch) | |
| tree | 0178db361f7541a338223956f91bf012ce303fc2 /sys | |
| parent | ef1e7a26568432919b3f7545489ba8eaecd4934b (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 1b403d7c0721a..9ac37452657a6 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -509,6 +509,17 @@ devfs_pathconf(ap) case _PC_PATH_MAX: *ap->a_retval = PATH_MAX; return (0); + case _POSIX_MAC_PRESENT: +#ifdef MAC + /* + * If MAC is enabled, devfs automatically supports + * trivial non-persistant label storage. + */ + *ap->a_retval = 1; +#else + *ap->a_retval = 0; +#endif /* MAC */ + return (0); default: return (vop_stdpathconf(ap)); } |
