summaryrefslogtreecommitdiff
path: root/src/misc/getresgid.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-11-08 21:33:42 -0500
committerRich Felker <dalias@aerifal.cx>2013-11-08 21:33:42 -0500
commit41a9ba25cd810fb86ad0d6943bf2d5556d91b99e (patch)
treebc8160ad56689739c15d53db146c5e1b5ea58463 /src/misc/getresgid.c
parent1d0d2df609b2e47615c7798d1a09e69a2caff24b (diff)
downloadmusl-41a9ba25cd810fb86ad0d6943bf2d5556d91b99e.tar.gz
remove O_NOFOLLOW from __map_file used for time zone file loading
it's not clear why I originally wrote O_NOFOLLOW into this; I suspect the reason was with an aim of making the function more general for mapping partially or fully untrusted files provided by the user. however, the timezone code already precludes use of absolute or relative pathnames in suid/sgid programs, and disallows .. in pathnames which are relative to one of the system timezone locations, so there is no threat of opening a symlink which is not trusted by appropriate user. since some users may wish to put symbolic links in the zoneinfo directories to alias timezones, it seems preferable to allow this.
Diffstat (limited to 'src/misc/getresgid.c')
0 files changed, 0 insertions, 0 deletions