[sandbox] modifying the Xephyr window title (patch)

Christoph A. casmls at gmail.com
Thu Apr 21 12:01:46 UTC 2011


Hi,

If most of your windows are sandboxed applications, your bar looks like:

[Sandbox sandbo..] [Sandbox sandbo..] [Sandbox sandbo..]

and it is hard to find a specific application.

example of a current Xephyr title:
Sandbox sandbox_web_t:s0:c112,c991 -- /usr/bin/firefox

with the modification in the attached patch titles will look like:

/usr/bin/firefox (sandbox_web_t)

and it should be easier to find a specific application.
In addition to the type I would find it handy to also include the
DISPLAY in the title (needed when using xsel for copy'n paste).

The second patch only adds '-nolisten tcp' to Xephyr, but if there are
use cases where one needs Xephyr to open a listener this patch will
break thinks.

regards,
Christoph A.
btw: secon's manpage doesn't contain the '-l' option.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sandboxX.sh-NOLISTEN.patch
Url: http://lists.fedoraproject.org/pipermail/selinux/attachments/20110421/d977c881/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sandboxX.sh-TITLE.patch
Url: http://lists.fedoraproject.org/pipermail/selinux/attachments/20110421/d977c881/attachment-0001.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/selinux/attachments/20110421/d977c881/attachment.bin 


More information about the selinux mailing list