Bug 10561 - stap-server: take over signing duties, allow arg passing to stap
Summary: stap-server: take over signing duties, allow arg passing to stap
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Dave Brolley
URL:
Keywords:
Depends on:
Blocks: blockers-1.1
  Show dependency treegraph
 
Reported: 2009-08-25 20:50 UTC by Frank Ch. Eigler
Modified: 2009-11-05 13:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2009-08-25 20:50:43 UTC
It is sometimes desirable to launch stap-server processes on a machine
with multiple sets of kernel-debuginfo/devel installed (as in a master
compilation server), or for cross-arch purposes.  For this to work,
each stap-server needs to accept some arguments at startup time
(at least -a, -r, -B, for the nonce).

OTOH, unprivileged mode support specifically disabled some of these 
flags within stap.  Yet we want that too.

So it seems like a possible solution is to clarify what stap options
may be passed through which layer.  It seems as though stap-server
should pass some server-admin-specified flags (might as well come
from stap-start-server), and block these same ones from clients
(as they arrive from stap-client or whatever in the request-containing
zip file).  It'd have to safely collate the two lists of options, and
pass them to plain stap.

Since stap-server would now perform stap argument sanitization, it
becomes probably the best place to do module-signing.  That means
stap wouldn't do it (even in the --unprivileged case), just include
some more constraints during the translation process.
Comment 1 Dave Brolley 2009-08-26 14:52:46 UTC
With this proposed change the usage module officially changes from "in order to
have their modules loaded, unprivileged users should compile their modules using
a systemtap server" to "in order to have their modules loaded, unprivileged
users *must* compile their modules using a systemtap server".
Comment 2 Frank Ch. Eigler 2009-08-26 15:05:00 UTC
(In reply to comment #1)
> With this proposed change the usage module officially changes from "in order to
> have their modules loaded, unprivileged users SHOULD compile their modules using
> a systemtap server" [... but now MUST ...]

What other way is there that we are about to sacrifice?
Comment 3 Frank Ch. Eigler 2009-11-05 13:53:16 UTC
done