All of lore.kernel.org
 help / color / mirror / Atom feed
* selinux
@ 2004-04-06 15:15 Harald Hoyer
  0 siblings, 0 replies; 9+ messages in thread
From: Harald Hoyer @ 2004-04-06 15:15 UTC (permalink / raw)
  To: linux-hotplug

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

In extras there is udev_selinux. From where is this supposed to be called?

Attached is a totally untested patch to make it compile.

[-- Attachment #2: udev-024-selinux.patch --]
[-- Type: text/x-patch, Size: 1183 bytes --]

--- udev-024/extras/selinux/Makefile.sel	2004-04-05 17:59:22.640630568 +0200
+++ udev-024/extras/selinux/Makefile	2004-04-05 17:59:48.421711248 +0200
@@ -54,6 +54,7 @@
 
 
 install: all
+	$(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
 
 uninstall: 
 
--- udev-024/extras/selinux/udev_selinux.c.sel	2004-04-03 00:47:28.000000000 +0200
+++ udev-024/extras/selinux/udev_selinux.c	2004-04-05 17:59:05.962166080 +0200
@@ -12,17 +12,32 @@
 
 #ifdef LOG
 unsigned char logname[LOGNAME_SIZE];
-void log_message(int level, const char *format, ...)
+static int debug;
+void log_message (int level, const char *format, ...)
 {
-	va_list args;
+	va_list	args;
 
-	if (!udev_log)
+	if (!debug && level == LOG_DEBUG)
 		return;
 
-	va_start(args, format);
-	vsyslog(level, format, args);
-	va_end(args);
+	va_start (args, format);
+	{
+		static int logging_init = 0;
+		if (!logging_init) {
+			/*
+			 * klibc does not have LOG_PID.
+			 */
+			snprintf(logname, 32, "udev_selinux[%d]", getpid());
+			openlog (logname, 0, LOG_DAEMON);
+			logging_init = 1;
+		}
+
+		vsyslog(level, format, args);
+	}
+	va_end (args);
+	return;
 }
+
 #endif
 
 void selinux_add_node(char *filename)

^ permalink raw reply	[flat|nested] 9+ messages in thread
* SELinux
@ 2018-09-13 15:01 khalid fahad
  0 siblings, 0 replies; 9+ messages in thread
From: khalid fahad @ 2018-09-13 15:01 UTC (permalink / raw)
  To: Linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 785 bytes --]

Hi,
I have a question about SELiux. the question is (  Using the syntax from
sesearch output , provide a list of rules that you would create to confine
file access for a corporate finance application (e.g. accounts
payable/receivable, payroll). You should create type(s) for both the
process(es) and files. Ensure that you consider the wide variety of types
of data that this application would need to access).

i run the command (sesearch -A I grep -w '' ftpd_ t public content_ t'' )
and i get:-
allow ftpd_t  public_content_t : dir { ioctl read getattr lock search open
} ;
allow ftpd_t  public_content_t :  lnk file  { read getattr } ;
allow ftpd_t  public_content_t :  file { ioctl read getattr lock open } ;
can you help me to understand the concept of this question ?
best reg,

[-- Attachment #1.2: Type: text/html, Size: 1402 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 9+ messages in thread
* SELinux
@ 2008-02-17 20:11 Justin Mattock
  0 siblings, 0 replies; 9+ messages in thread
From: Justin Mattock @ 2008-02-17 20:11 UTC (permalink / raw)
  To: selinux

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

Thanks for the info on how SELinux and audit run in the situation of power
conservativeness, and handling; very interesting about applications going
into a loop. or power hungry CPU's.

   Justin P. Mattock

[-- Attachment #2: Type: text/html, Size: 231 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* SeLinux
@ 2003-07-25  3:04 Azeem Gopalani
  0 siblings, 0 replies; 9+ messages in thread
From: Azeem Gopalani @ 2003-07-25  3:04 UTC (permalink / raw)
  To: selinux

Hello.

	I'm Azeem, and I'm extremely impressed by the amount of activity 
on this mailing list. I'm a Linux Newbie compared to you fellows, though I 
do run and administrate a box of my own running Slackware 8.0. I'm 
thinking of setting up a second system and contributing in some way to the 
project, though I have no idea how, and know less than a quarter of what 
you're talking about. I still believe introductions are a Good Thing(TM), 
so that's me and information pertinent to you all.

	You may now proceed to brilliantly lambaste me.

			--Azeem

-- 
Death twitches my ear. 
"Live," he says, "I am coming."  
~Virgil
--
                             Azeem Gopalani
                                 captain@obscure.org


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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* selinux
@ 2003-03-20  0:29 Menon, Sunanda R
  2003-03-20 21:26 ` selinux Howard Holm
  0 siblings, 1 reply; 9+ messages in thread
From: Menon, Sunanda R @ 2003-03-20  0:29 UTC (permalink / raw)
  To: selinux


I am trying to get selinux patch for red hat Linux 2.4.18. I could not find
the tar file at the NSA site. Can anyone tell me where I can get it?
Thanks

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* SELinux
@ 2002-02-21  5:27 Shaun Savage
  2002-02-21 15:36 ` SELinux Stephen Smalley
  2002-02-21 17:33 ` SELinux David Caplan
  0 siblings, 2 replies; 9+ messages in thread
From: Shaun Savage @ 2002-02-21  5:27 UTC (permalink / raw)
  To: selinux

I have been customizing the policy now for about three months.  If you 
think of writing new policy as designing a state machine thing are easier.
the questions you need to ask is
1> How do you get to the execution of the program.  What domain should 
you allow to start this program?
2> What protections are required? This is the biggest issue.  Is there a 
  log file?  Does the program acceses any sockets? Is there user 
communcation?  Detail knowledge of the application is needed.  I tend to 
be paranoid so I create too many sub domains and make the policy difficult.
3> What programs are allowed to access this application data?

Read the policy/macros.te file
The linux/security/selinux/include/flask/*.h
av_permissions.h gives the bit pattern of all the permissions
av_perm_to_string.h & common_perm_to_string.h is some of the string
    permissions
class_to_string.h is most of the objects
flask.h gives the object classes

The main thing is to understand the application. Know what files, 
sockets, are being accesed and how.

I do agree that there needs to be a more documentation, but if there 
isn't the you can earn big dollars if you know it, I hope ;-).

Shaun Savage


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-13 15:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-06 15:15 selinux Harald Hoyer
  -- strict thread matches above, loose matches on Subject: below --
2018-09-13 15:01 SELinux khalid fahad
2008-02-17 20:11 SELinux Justin Mattock
2003-07-25  3:04 SeLinux Azeem Gopalani
2003-03-20  0:29 selinux Menon, Sunanda R
2003-03-20 21:26 ` selinux Howard Holm
2002-02-21  5:27 SELinux Shaun Savage
2002-02-21 15:36 ` SELinux Stephen Smalley
2002-02-21 17:33 ` SELinux David Caplan

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.