All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SELinux <SELinux@tycho.nsa.gov>
Subject: Re: Problems with MCS/Targeted policy update.
Date: Fri, 26 Aug 2005 14:25:59 -0400	[thread overview]
Message-ID: <430F5EB7.4000308@redhat.com> (raw)
In-Reply-To: <430C776B.4060309@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 36 bytes --]


Patch to use raw functions.

-- 



[-- Attachment #2: policycoreutils-rhat.patch --]
[-- Type: text/x-patch, Size: 1048 bytes --]

diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecon/restorecon.c policycoreutils-1.25.7/restorecon/restorecon.c
--- nsapolicycoreutils/restorecon/restorecon.c	2005-07-27 09:58:39.000000000 -0400
+++ policycoreutils-1.25.7/restorecon/restorecon.c	2005-08-26 14:20:10.000000000 -0400
@@ -186,7 +186,7 @@
     freecon(scontext);
     return 0;
   }
-  retcontext=lgetfilecon(filename,&prev_context);
+  retcontext=lgetfilecon_raw(filename,&prev_context);
   
   if (retcontext >= 0 || errno == ENODATA) {
     int customizable=0;
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/setfiles/setfiles.c policycoreutils-1.25.7/setfiles/setfiles.c
--- nsapolicycoreutils/setfiles/setfiles.c	2005-04-11 16:00:46.000000000 -0400
+++ policycoreutils-1.25.7/setfiles/setfiles.c	2005-08-26 14:20:28.000000000 -0400
@@ -285,7 +285,7 @@
 	}
 
 	/* Get the current context of the file. */
-	ret = lgetfilecon(my_file, &context);
+	ret = lgetfilecon_raw(my_file, &context);
 	if (ret < 0) {
 		if (errno == ENODATA) {
 			context = malloc(10);

  parent reply	other threads:[~2005-08-26 18:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-24 13:34 Problems with MCS/Targeted policy update Daniel J Walsh
2005-08-24 14:20 ` Stephen Smalley
2005-08-24 15:14   ` Daniel J Walsh
2005-08-25 14:44     ` Stephen Smalley
2005-08-25 15:12       ` Stephen Smalley
2005-08-25 15:19       ` Karl MacMillan
2005-08-25 16:14         ` Stephen Smalley
2005-08-25 18:13           ` Karl MacMillan
2005-08-26 18:16 ` Daniel J Walsh
2005-08-26 18:24   ` Stephen Smalley
2005-08-26 18:50     ` Daniel J Walsh
2005-08-26 18:55       ` Stephen Smalley
2005-08-26 18:51     ` Daniel J Walsh
2005-08-26 18:25 ` Daniel J Walsh [this message]
2005-08-26 18:27   ` Stephen Smalley

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=430F5EB7.4000308@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=SELinux@tycho.nsa.gov \
    --cc=sds@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.