summaryrefslogtreecommitdiffstats
path: root/runtime/alloc.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-01-02 13:22:01 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-01-02 13:22:01 -0500
commit18e70d579158bef907110277239c81845a11e927 (patch)
tree6fffe9de9fb520be8651a454a6760be8d8628021 /runtime/alloc.c
parent44c0b42e6f3e50f4ef8d1eaac1f22e5c15ae715a (diff)
downloadsystemtap-steved-18e70d579158bef907110277239c81845a11e927.tar.gz
systemtap-steved-18e70d579158bef907110277239c81845a11e927.tar.xz
systemtap-steved-18e70d579158bef907110277239c81845a11e927.zip
Fix mkdtemp() umask issue
Even though the mkdtemp() man page indicates that the directory will be created with always 0700 permissions, it is actually affected by the process's umask. So, if you run stap with an unusual umask it can end up creating the temp dir with permissions that staprun can't handle e.g.: $> rpm -q systemtap systemtap-0.6-1.fc9 $> umask 0122 $> stap -e 'probe begin { println("foo") exit() }' ERROR: Error opening '/tmp/stapV4pBIb/stap_725b9bc541cef2618a5ccbc58bb64d15_287.ko': Permission denied Obvious solution is to briefly set the umask to zero in stap so as to ensure 0700 permissions. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'runtime/alloc.c')
0 files changed, 0 insertions, 0 deletions