nethack: use setgid instead of setuid, to access user's config file.
This commit is contained in:
parent
5564772c57
commit
2381f2437f
|
@ -1,8 +1,10 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
chown nethack:nethack usr/lib/nethack/nethack
|
||||
chmod 04755 usr/lib/nethack/nethack
|
||||
chmod 02755 usr/lib/nethack/nethack
|
||||
touch var/games/nethack/logfile var/games/nethack/perm var/games/nethack/record
|
||||
chown nethack:nethack var/games/nethack var/games/nethack/*
|
||||
chmod 0775 var/games/nethack
|
||||
chmod 0664 var/games/nethack/logfile var/games/nethack/perm var/games/nethack/record
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Template file for 'nethack'
|
||||
pkgname=nethack
|
||||
version=3.4.3
|
||||
revision=1
|
||||
make_dirs="/var/games/nethack/save 0755 nethack root"
|
||||
revision=2
|
||||
make_dirs="/var/games/nethack/save 0775 nethack nethack"
|
||||
system_accounts="$pkgname"
|
||||
nethack_homedir="/var/empty"
|
||||
hostmakedepends="ncurses-devel flex groff"
|
||||
|
|
Loading…
Reference in New Issue
Block a user