Research
.
Skip Search Box

SELinux Mailing List

Re: patch

From: Stephen Smalley <sds_at_tislabs.com>
Date: Wed, 15 Aug 2001 08:55:40 -0400 (EDT)

On Tue, 14 Aug 2001, Ryan Senior wrote:

> patching file initpolicy.conf

The patch is for the kernel-2.4/security/policy_parse.y file, so it shouldn't be modifying initpolicy.conf at all. I've attached a version of the patch that should be easier to apply. Assuming that you save it to ~/parser.patch, apply it as follows:

cd slinux
patch -p1 < ~/parser.patch

It should say: patching file kernel-2.4/security/policy_parse.y.

Then do 'cd kernel-2.4; make' to rebuild the checkpolicy program. You should then be able to compile the policy configuration.

--
Stephen D. Smalley, NAI Labs
ssmalley@nai.com




Index: slinux/kernel-2.4/security/policy_parse.y diff -u slinux/kernel-2.4/security/policy_parse.y:1.1 slinux/kernel-2.4/security/policy_parse.y:1.2 --- slinux/kernel-2.4/security/policy_parse.y:1.1 Fri Jan 5 14:18:02 2001 +++ slinux/kernel-2.4/security/policy_parse.y Mon May 7 14:01:23 2001 @@ -1775,7 +1775,6 @@ { char *id; class_datum_t *cladatum; - type_datum_t *datum; perm_datum_t *perdatum; ebitmap_t stypes, ttypes, tclasses; access_vector_t *avp; @@ -1814,7 +1813,7 @@ hiclass = 0; while ((id = queue_remove(id_queue))) { cladatum = hashtab_search(policydbp->p_classes.table, id); - if (!datum) { + if (!cladatum) { sprintf(errormsg, "unknown class %s used in rule", id); yyerror(errormsg); goto bad; @@ -2091,7 +2090,6 @@ if (ret) { yyerror("hash table overflow"); free(role); - free(id); free(role_id); return -1; } -- You have received this message because you are subscribed to the selinux 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.

Received on Wed 15 Aug 2001 - 09:13:23 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service