All of lore.kernel.org
 help / color / mirror / Atom feed
* Possible issues with dpkg SELinux support
@ 2012-11-08  8:26 Guillem Jover
  2012-11-08 15:49 ` Stephen Smalley
  0 siblings, 1 reply; 8+ messages in thread
From: Guillem Jover @ 2012-11-08  8:26 UTC (permalink / raw)
  To: selinux; +Cc: selinux-devel, debian-dpkg

Hi!

I've had on my TODO for some time to clear out some doubts about the
current dpkg SELinux support (which preceded my time), to be able to
fix some possible issues with it, and because I've never actually used
a SELinux enabled system and my knowledge about it is mostly
superficial. So here goes:

An error from the lsetfilecon_raw() call in [0] does not currently
end up in the installation process aborting (just an error message
printed out), I think this is wrong as I noted with the XXX there,
but I'd like your input on this, in case it actually needs to proceed
anyway. Otherwise I'd guess at least ENOTSUP should be ignored.

  [0] <http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=blob;f=src/archives.c;h=4e363474607bd916813ce772b1e5c4c7359a76fc;hb=HEAD#l479>

And when invoking package maintainer scripts, dpkg does not set a
new execution context, like rpm does with rpm_execcon(), and while
skimming over the SELinux policy related to dpkg it seemed like
dpkg would need to do so.

I'd be fixing those, if needed, for dpkg 1.17.x.

thanks,
guillem

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2012-11-14 13:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08  8:26 Possible issues with dpkg SELinux support Guillem Jover
2012-11-08 15:49 ` Stephen Smalley
2012-11-10  3:19   ` Guillem Jover
2012-11-11  9:18     ` Guillem Jover
2012-11-12 13:03       ` Daniel J Walsh
2012-11-13 19:16     ` Stephen Smalley
2012-11-13 20:13       ` Guillem Jover
2012-11-14 13:49         ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.