2012-10-11 12:34:16 +02:00
|
|
|
# $NetBSD: NetBSD.dist.base,v 1.103 2012/06/21 04:30:04 pgoyette Exp $
|
|
|
|
# @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
|
|
|
|
|
|
|
|
# Do not customize this file as it may be overwritten on upgrades.
|
|
|
|
# Put your custom specifications in /etc/mtree/special.local.
|
|
|
|
# See security.conf(5) for details.
|
|
|
|
|
|
|
|
#
|
|
|
|
# LSC This file has been adapted for MINIX
|
|
|
|
#
|
|
|
|
|
2013-02-26 09:24:42 +01:00
|
|
|
# Standard directories
|
2012-10-11 12:34:16 +02:00
|
|
|
/set type=dir uid=0 gid=0 mode=0755
|
|
|
|
.
|
|
|
|
./bin
|
|
|
|
./boot
|
|
|
|
./boot/minix
|
|
|
|
./boot/minix_default
|
|
|
|
./dev
|
Add PTYFS, Unix98 pseudo terminal support
This patch adds support for Unix98 pseudo terminals, that is,
posix_openpt(3), grantpt(3), unlockpt(3), /dev/ptmx, and /dev/pts/.
The latter is implemented with a new pseudo file system, PTYFS.
In effect, this patch adds secure support for unprivileged pseudo
terminal allocation, allowing programs such as tmux(1) to be used by
non-root users as well. Test77 has been extended with new tests, and
no longer needs to run as root.
The new functionality is optional. To revert to the old behavior,
remove the "ptyfs" entry from /etc/fstab.
Technical nodes:
o The reason for not implementing the NetBSD /dev/ptm approach is that
implementing the corresponding ioctl (TIOCPTMGET) would require
adding a number of extremely hairy exceptions to VFS, including the
PTY driver having to create new file descriptors for its own device
nodes.
o PTYFS is required for Unix98 PTYs in order to avoid that the PTY
driver has to be aware of old-style PTY naming schemes and even has
to call chmod(2) on a disk-backed file system. PTY cannot be its
own PTYFS since a character driver may currently not also be a file
system. However, PTYFS may be subsumed into a DEVFS in the future.
o The Unix98 PTY behavior differs somewhat from NetBSD's, in that
slave nodes are created on ptyfs only upon the first call to
grantpt(3). This approach obviates the need to revoke access as
part of the grantpt(3) call.
o Shutting down PTY may leave slave nodes on PTYFS, but once PTY is
restarted, these leftover slave nodes will be removed before they
create a security risk. Unmounting PTYFS will make existing PTY
slaves permanently unavailable, and absence of PTYFS will block
allocation of new Unix98 PTYs until PTYFS is (re)mounted.
Change-Id: I822b43ba32707c8815fd0f7d5bb7a438f51421c1
2015-06-22 19:14:34 +02:00
|
|
|
./dev/pts
|
2012-10-11 12:34:16 +02:00
|
|
|
./etc
|
2013-08-21 11:15:11 +02:00
|
|
|
./etc/X11
|
|
|
|
./etc/X11/fs
|
|
|
|
./etc/X11/lbxproxy
|
|
|
|
./etc/X11/proxymngr
|
|
|
|
./etc/X11/rstart
|
|
|
|
./etc/X11/rstart/commands
|
|
|
|
./etc/X11/rstart/commands/x11r6
|
|
|
|
./etc/X11/rstart/contexts
|
|
|
|
./etc/X11/twm
|
|
|
|
./etc/X11/xdm
|
|
|
|
./etc/X11/xinit
|
|
|
|
./etc/X11/xserver
|
|
|
|
./etc/X11/xsm
|
2012-10-11 12:34:16 +02:00
|
|
|
./etc/defaults
|
|
|
|
./etc/devmand
|
|
|
|
./etc/devmand/scripts
|
2013-08-21 11:15:11 +02:00
|
|
|
./etc/fonts
|
|
|
|
./etc/fonts/conf.avail
|
|
|
|
./etc/fonts/conf.d
|
2012-10-11 12:34:16 +02:00
|
|
|
./etc/mtree
|
2014-11-10 16:09:08 +01:00
|
|
|
./etc/skel
|
2012-10-11 12:34:16 +02:00
|
|
|
./etc/system.conf.d
|
|
|
|
./home
|
|
|
|
./lib
|
|
|
|
./mnt
|
|
|
|
./proc
|
|
|
|
./root
|
|
|
|
./sbin
|
2014-07-29 20:29:57 +02:00
|
|
|
./service
|
2012-10-11 12:34:16 +02:00
|
|
|
./sys
|
|
|
|
./usr
|
|
|
|
./usr/adm
|
|
|
|
./usr/adm/old
|
|
|
|
./usr/bin
|
|
|
|
./usr/etc
|
2014-03-15 20:46:01 +01:00
|
|
|
./usr/games
|
|
|
|
./usr/games/hide gname=games mode=0750
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include
|
|
|
|
./usr/include/arpa
|
2013-11-15 13:00:54 +01:00
|
|
|
./usr/include/clang-3.4
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/compat
|
|
|
|
./usr/include/compat/machine
|
|
|
|
./usr/include/ddekit
|
|
|
|
./usr/include/ddekit/minix
|
2014-10-15 09:51:53 +02:00
|
|
|
./usr/include/dev
|
|
|
|
./usr/include/dev/pci
|
2014-10-01 17:39:05 +02:00
|
|
|
./usr/include/event2
|
2013-12-06 12:04:52 +01:00
|
|
|
./usr/include/fs
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/g++
|
|
|
|
./usr/include/i386
|
2013-02-26 09:24:42 +01:00
|
|
|
./usr/include/lutok
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/lzma
|
2013-12-06 12:04:52 +01:00
|
|
|
./usr/include/isofs
|
|
|
|
./usr/include/isofs/cd9660
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/minix
|
2013-12-06 12:04:52 +01:00
|
|
|
./usr/include/msdosfs
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/net
|
|
|
|
./usr/include/net/gen
|
2013-12-06 12:04:52 +01:00
|
|
|
./usr/include/ppath
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/prop
|
|
|
|
./usr/include/protocols
|
2013-01-22 12:03:53 +01:00
|
|
|
./usr/include/readline
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/include/rpcsvc
|
|
|
|
./usr/include/ssp
|
|
|
|
./usr/include/sys
|
|
|
|
./usr/include/ufs
|
|
|
|
./usr/include/ufs/chfs
|
|
|
|
./usr/include/ufs/ext2fs
|
|
|
|
./usr/include/ufs/ffs
|
|
|
|
./usr/include/ufs/lfs
|
|
|
|
./usr/include/ufs/mfs
|
|
|
|
./usr/include/ufs/ufs
|
|
|
|
./usr/lib
|
2013-06-17 16:51:49 +02:00
|
|
|
./usr/lib/bc
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/lib/cawf
|
|
|
|
./usr/lib/dict
|
|
|
|
./usr/lib/flex
|
|
|
|
./usr/lib/fonts
|
|
|
|
./usr/lib/keymaps
|
2013-12-06 12:04:52 +01:00
|
|
|
./usr/lib/lua
|
|
|
|
./usr/lib/lua/5.1
|
2013-02-26 09:24:42 +01:00
|
|
|
./usr/lib/pkgconfig
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/libexec
|
|
|
|
./usr/log
|
|
|
|
./usr/man
|
|
|
|
./usr/man/man1
|
|
|
|
./usr/man/man2
|
|
|
|
./usr/man/man3
|
|
|
|
./usr/man/man4
|
|
|
|
./usr/man/man5
|
|
|
|
./usr/man/man6
|
|
|
|
./usr/man/man7
|
|
|
|
./usr/man/man8
|
|
|
|
./usr/man/man9
|
|
|
|
./usr/mdec
|
|
|
|
./usr/pkg
|
|
|
|
./usr/pkg/etc
|
|
|
|
./usr/pkg/etc/rc.d
|
|
|
|
./usr/preserve
|
|
|
|
./usr/run
|
|
|
|
./usr/sbin
|
|
|
|
./usr/share
|
2013-11-11 16:52:51 +01:00
|
|
|
./usr/share/calendar
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/share/doc
|
|
|
|
./usr/share/doc/html
|
|
|
|
./usr/share/doc/html/bzip2
|
|
|
|
./usr/share/doc/psd
|
|
|
|
./usr/share/doc/psd/19.curses
|
2014-08-03 23:10:41 +02:00
|
|
|
./usr/share/doc/usd
|
|
|
|
./usr/share/doc/usd/03.shell
|
2015-03-14 04:29:23 +01:00
|
|
|
./usr/share/doc/usd/30.rogue
|
2014-10-01 17:59:46 +02:00
|
|
|
./usr/share/examples
|
|
|
|
./usr/share/examples/tmux
|
2013-04-10 18:13:48 +02:00
|
|
|
./usr/share/info
|
2014-03-15 20:46:01 +01:00
|
|
|
./usr/share/games
|
2014-03-16 14:39:21 +01:00
|
|
|
./usr/share/games/fortune
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/share/misc
|
2014-09-28 14:00:54 +02:00
|
|
|
./usr/share/legal
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/share/mk
|
2013-12-06 12:04:52 +01:00
|
|
|
./usr/share/nvi
|
|
|
|
./usr/share/nvi/catalog
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/share/terminfo
|
|
|
|
./usr/share/zoneinfo
|
|
|
|
./usr/share/zoneinfo/Africa
|
|
|
|
./usr/share/zoneinfo/America
|
|
|
|
./usr/share/zoneinfo/America/Argentina
|
|
|
|
./usr/share/zoneinfo/America/Indiana
|
|
|
|
./usr/share/zoneinfo/America/Kentucky
|
|
|
|
./usr/share/zoneinfo/America/North_Dakota
|
|
|
|
./usr/share/zoneinfo/Antarctica
|
|
|
|
./usr/share/zoneinfo/Arctic
|
|
|
|
./usr/share/zoneinfo/Asia
|
|
|
|
./usr/share/zoneinfo/Atlantic
|
|
|
|
./usr/share/zoneinfo/Australia
|
|
|
|
./usr/share/zoneinfo/Brazil
|
|
|
|
./usr/share/zoneinfo/Canada
|
|
|
|
./usr/share/zoneinfo/Chile
|
|
|
|
./usr/share/zoneinfo/Etc
|
|
|
|
./usr/share/zoneinfo/Europe
|
|
|
|
./usr/share/zoneinfo/Indian
|
|
|
|
./usr/share/zoneinfo/Mexico
|
|
|
|
./usr/share/zoneinfo/Mideast
|
|
|
|
./usr/share/zoneinfo/Pacific
|
|
|
|
./usr/share/zoneinfo/US
|
|
|
|
./usr/spool
|
|
|
|
./usr/spool/at
|
|
|
|
./usr/spool/at/past
|
|
|
|
./usr/spool/crontabs
|
|
|
|
./usr/spool/locks
|
|
|
|
./usr/spool/lpd
|
|
|
|
./usr/src
|
2013-03-08 17:02:27 +01:00
|
|
|
./usr/tests
|
2012-10-11 12:34:16 +02:00
|
|
|
./usr/var
|
|
|
|
./usr/var/db
|
|
|
|
./usr/var/db/pkg
|
|
|
|
./usr/var/run
|
|
|
|
./var
|
|
|
|
./var/db
|
|
|
|
./var/db/obsolete
|
2014-03-22 11:14:14 +01:00
|
|
|
./var/games uname=games gname=games mode=0775
|
2013-12-02 18:09:47 +01:00
|
|
|
./var/mail
|
2012-10-11 12:34:16 +02:00
|
|
|
./var/run
|
|
|
|
|
2012-11-19 11:07:58 +01:00
|
|
|
# Directories with special access rights
|
|
|
|
/set type=dir uid=0 gid=0 mode=1777
|
|
|
|
./tmp
|
|
|
|
./usr/tmp
|
|
|
|
|
2013-03-08 19:18:09 +01:00
|
|
|
/set type=dir uid=2 gid=0 mode=755
|
|
|
|
./usr/tests/minix-posix
|
2013-09-18 13:41:56 +02:00
|
|
|
./usr/tests/minix-posix/blocktest
|
2014-03-25 16:02:31 +01:00
|
|
|
./usr/tests/minix-posix/ddekit
|
2013-03-08 19:18:09 +01:00
|
|
|
|
2013-01-18 20:52:00 +01:00
|
|
|
# this one is for term(1)
|
|
|
|
/set type=dir uid=0 gid=5 mode=775
|
|
|
|
./usr/spool/locks
|