logo       

Re: checkpolicy bombing on Fedora devel...: msg#00087

Subject: Re: checkpolicy bombing on Fedora devel...
On Tue, 20 Sep 2005 16:41:26 EDT, Stephen Smalley said:
 
> >From the info above, you have an id "s0" that is a sensitivity rather
> than a category, so the hashtab_search fails, but that code path fails
> to check for such failure and thus crashes rather than reporting it.
> Try the patch below.

OK.. No crash, something resembling a useful diagnostic.  Probably want
to keep the patch....

(gdb)  run -M -o policy.20 policy.conf
Starting program: /usr/src/redhat/BUILD/checkpolicy-1.27.1/checkpolicy -M -o 
policy.20 policy.conf
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
/usr/src/redhat/BUILD/checkpolicy-1.27.1/checkpolicy:  loading policy 
configuration from policy.conf
initial_sid_contexts:9:ERROR 'unknown category s0' at token 'sid' on line 
428578:
sid security    system_u:object_r:security_t:s0:s0
sid kernel      system_u:system_r:kernel_t:s0:s0
/usr/src/redhat/BUILD/checkpolicy-1.27.1/checkpolicy:  error(s) encountered 
while parsing configuration

"D'oh!" -- H. Simpson

After fixing initial_sid_contexts by hand, I got:

fs_use:8:ERROR 'unknown category s0' at token ';' on line 428624:
fs_use_xattr ext2 system_u:object_r:fs_t:s0:s0;
# Requires that a security xattr handler exist for the filesystem.

I think I trashed it by running 'make mcsconvert' (possibly twice) trying to
deal with the fact that my 'users' file didn't have :s0 type stuff in it....

Ended up doing an 'rpm -e selinux-policy-strict-sources' and then re-installing
it, all looks OK now.

Attachment: pgpcHrSsJc0gm.pgp
Description: PGP signature


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe