All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dale Amon <amon@vnl.com>
To: Russell Coker <russell@coker.com.au>
Cc: Dale Amon <amon@vnl.com>, SE Linux <selinux@tycho.nsa.gov>
Subject: More on selinux-default policy install probs
Date: Tue, 9 Dec 2003 18:42:53 +0000	[thread overview]
Message-ID: <20031209184253.GZ3812@vnl.com> (raw)

Russ, I've a few minutes free this evening to dig into
the package problems and as a starter I suggest you experiment
with a way around this:

Attempt to install any old package after selinux-default-policy fails:

# dpkg -i dpkg-dev_1.10.18_all.deb 
(Reading database ... 15591 files and directories currently installed.)
Preparing to replace dpkg-dev 1.10.18 (using dpkg-dev_1.10.18_all.deb) ...
Unpacking replacement dpkg-dev ...
Setting up dpkg-dev (1.10.18) ...
/etc/selinux does not exist, aborting!
run-parts: /etc/dpkg/postinst.d/selinux exited with return code 1
"/bin/run-parts --arg=dpkg-dev /etc/dpkg/postinst.d" failed: 256
dpkg: error processing dpkg-dev (--install):
 1Error running trigger postinst: No such file or directory
Errors were encountered while processing:
 dpkg-dev

This happens because for some reason because /etc/selinux doesn't 
exist... in fact there is only a /usr/share/selinux/policy/default 
and no current left behind. Your postint.d script explicitely
forces a fail on every package install because of it.

Removing just the post install hook:

# mv /etc/dpkg/postinst.d/selinux /root/selinux

Allows normal dpkg installing to work again:

# dpkg -i dpkg-dev_1.10.18_all.deb 
(Reading database ... 15591 files and directories currently installed.)
Preparing to replace dpkg-dev 1.10.18 (using dpkg-dev_1.10.18_all.deb) ...
Unpacking replacement dpkg-dev ...
Setting up dpkg-dev (1.10.18) ...

-------------------------------

I'll try to dig deeper... for one I'd like to figure out why
the policy package install didn't create the link. As you can
probably guess I was installing dpkg-dev on the loopback image
so I can figure out what you've done to me ;-)

If this is something that could happen to anyone
who "just tries" installing selinux-default-policy
for the hell of it on a normal debian machine, it
could cause a bit of a problem for them.

-- 
------------------------------------------------------
   Dale Amon     amon@islandone.org    +44-7802-188325
       International linux systems consultancy
     Hardware & software system design, security
    and networking, systems programming and Admin
	      "Have Laptop, Will Travel"
------------------------------------------------------

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

             reply	other threads:[~2003-12-09 18:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09 18:42 Dale Amon [this message]
2003-12-09 19:05 ` More on selinux-default policy install probs Dale Amon

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=20031209184253.GZ3812@vnl.com \
    --to=amon@vnl.com \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.