public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug server/16309] New: SELinux prevents stap-serverd from opening the current dir when spawning processes
@ 2013-12-10 17:38 jlebon at redhat dot com
  2013-12-10 17:42 ` [Bug server/16309] " jlebon at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jlebon at redhat dot com @ 2013-12-10 17:38 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16309

            Bug ID: 16309
           Summary: SELinux prevents stap-serverd from opening the current
                    dir when spawning processes
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

When stap-serverd tries to start stap or even zip, the open() call to "." in
spawn_and_wait fails with EACCES, and the log shows "Error in spawn getcwd".
This does not occur if in permissive mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug server/16309] SELinux prevents stap-serverd from opening the current dir when spawning processes
  2013-12-10 17:38 [Bug server/16309] New: SELinux prevents stap-serverd from opening the current dir when spawning processes jlebon at redhat dot com
@ 2013-12-10 17:42 ` jlebon at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jlebon at redhat dot com @ 2013-12-10 17:42 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16309

Jonathan Lebon <jlebon at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Jonathan Lebon <jlebon at redhat dot com> ---
This issue occurs because /usr/bin/stap-server does a cd to /usr/lib/modules
when treating the -i option. This cwd is inherited by stap-serverd, which does
not have the blessing of SELinux to open that directory. Fixed in commit
481d154 by always changing to / before starting stap-serverd.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-10 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-10 17:38 [Bug server/16309] New: SELinux prevents stap-serverd from opening the current dir when spawning processes jlebon at redhat dot com
2013-12-10 17:42 ` [Bug server/16309] " jlebon at redhat dot com

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).