public inbox for systemtap-cvs@sourceware.org help / color / mirror / Atom feed
From: fche@sourceware.org To: systemtap-cvs@sourceware.org Subject: src main.cxx Date: Wed, 02 Jan 2008 18:22:00 -0000 [thread overview] Message-ID: <20080102182229.14408.qmail@sourceware.org> (raw) CVSROOT: /cvs/systemtap Module name: src Changes by: fche@sourceware.org 2008-01-02 18:22:29 Modified files: . : main.cxx Log message: 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> Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/main.cxx.diff?cvsroot=systemtap&r1=1.82&r2=1.83
next reply other threads:[~2008-01-02 18:22 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-01-02 18:22 fche [this message] -- strict thread matches above, loose matches on Subject: below -- 2008-01-30 17:23 fche 2007-05-13 2:08 fche 2006-04-05 5:20 roland 2006-01-28 2:50 fche 2005-12-12 21:50 kevinrs 2005-08-22 16:23 fche 2005-07-29 8:36 roland
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080102182229.14408.qmail@sourceware.org \ --to=fche@sourceware.org \ --cc=systemtap-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).