All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp.com>
To: "Todd C. Miller" <tmiller@tresys.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: PATCH: peersid capability support
Date: Fri, 30 Nov 2007 17:48:05 -0500	[thread overview]
Message-ID: <200711301748.05733.paul.moore@hp.com> (raw)
In-Reply-To: <200711301406.10774.paul.moore@hp.com>

On Friday 30 November 2007 2:06:10 pm Paul Moore wrote:
> On Friday 30 November 2007 12:34:20 pm Todd C. Miller wrote:
> > I see what happened.  When generating the patch I did an svn revert not
> > realizing that of course it wouldn't revert a new file it knew nothing
> > about.  So effectively the new files were duplicated--one copy in the
> > patch and one on the filesystem.
> >
> > Here's a fixed diff that applies to a fresh checkout.
>
> Thanks, that applied without problem.

Probably user error on my end but I'm running into problems trying to make use 
of the new code.  Here is what I did, please point out if I'm missing 
something ...

1. Compiled the new bits
2. Replaced checkmodule, checkpolicy, load_policy, libsepol and libsemanage 
with the patched versions (wasn't really sure what needed to be replaced, do 
I need any others?)
3. Created a simple policy module (did I get the syntax for the policycap 
right? ... it's been a while since I looked at lex/yacc code):
 policy_module(peer_test,0.0.1)
 policycap network_peer_controls;
 type peer_test_t;
4. Compiled the new module using the unmodified policy Makefile from Rawhide
 Compiling targeted peer_test module
 /usr/bin/checkmodule:  loading policy configuration from tmp/peer_test.tmp
 /usr/bin/checkmodule:  policy configuration loaded
 /usr/bin/checkmodule:  writing binary representation (version 7) to 
                        tmp/peer_test.mod
 Creating targeted peer_test.pp policy package
5. Tried installing the module
/usr/sbin/load_policy:  Can't load policy:  Invalid argument
libsemanage.semanage_reload_policy: load_policy returned error code 2.
semodule:  Failed!

Help/Ideas?

-- 
paul moore
linux security @ hp

--
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:[~2007-11-30 22:48 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 17:34 PATCH: peersid capability support Todd C. Miller
2007-11-30 19:06 ` Paul Moore
2007-11-30 22:48   ` Paul Moore [this message]
2007-12-01  0:19     ` Joshua Brindle
2007-12-03 17:32       ` Paul Moore
2007-12-03 18:21         ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2007-12-03 19:41 Todd C. Miller
2007-12-04 19:26 ` Paul Moore
2007-12-04 20:18   ` Stephen Smalley
2007-12-05 18:58 ` Stephen Smalley
2007-12-05 19:00   ` Todd Miller
2007-11-29 19:27 tmiller
2007-11-29 21:24 ` Stephen Smalley
2007-11-29 23:24   ` Joshua Brindle
2007-11-30 13:34     ` Stephen Smalley
2007-11-30 14:38       ` Joshua Brindle
2007-11-30 14:48         ` Stephen Smalley
2007-11-30 14:53           ` Stephen Smalley
2007-11-30 15:31           ` Joshua Brindle
2007-11-30 15:44             ` Paul Moore
2007-11-30 16:02               ` Joshua Brindle
2007-11-30 16:19                 ` Paul Moore
2007-11-30 16:12             ` Stephen Smalley
2007-11-30 16:41               ` Stephen Smalley
2007-11-30 14:29   ` Paul Moore
2007-11-30 14:43     ` Joshua Brindle
2007-11-30 14:47       ` Paul Moore
2007-11-30 16:30       ` Paul Moore
2007-11-30 16:59         ` Todd Miller
2007-11-30 17:08           ` Stephen Smalley
2007-11-30 18:19           ` Paul Moore
2007-12-03 15:53     ` Christopher J. PeBenito
2008-01-03 15:15 ` Václav Ovsík
2008-01-03 15:25   ` Todd Miller

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=200711301748.05733.paul.moore@hp.com \
    --to=paul.moore@hp.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=tmiller@tresys.com \
    /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.