All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: SELinux <SELinux@tycho.nsa.gov>
Subject: Re: Updated policy
Date: Tue, 25 Jan 2005 23:54:36 -0700	[thread overview]
Message-ID: <1106722476.17057.3.camel@cobra.ivg2.net> (raw)
In-Reply-To: <41F6A47E.9010407@redhat.com>

On Tue, 2005-01-25 at 14:56 -0500, Daniel J Walsh wrote:
> Many changes to allow policy to support telnetd, rlogind and rshd.
> 
> allow mount_t binfmt_misc_fs_t:dir mounton;
> Required to run wine.

What about samba - how to get samba to work? (Bug: 145025)

Something along those lines, or does it need a separate
context from mount_t ?

--- mount.te    2005-01-25 22:40:04.000000000 -0700
+++ mount.new   2005-01-25 23:38:22.000000000 -0700
@@ -77,7 +77,16 @@
 #
 # required for mount.smbfs
 #
+ifdef(`samba.te', `
+can_network(mount_t)
+allow mount_t self:capability { setuid setgid };
+allow mount_t samba_log_t:file create_file_perms;
+allow mount_t samba_var_t:dir getattr;
+allow mount_t samba_var_t:file rw_file_perms;
+allow mount_t samba_etc_t:file { getattr read };
 allow mount_t sbin_t:lnk_file { getattr read };
+allow mount_t cifs_t:dir { getattr read ioctl };
+')

 rhgb_domain(mount_t)
--- mount_macros.te     2005-01-25 23:23:03.000000000 -0700
+++ mount_macros.new    2005-01-25 23:32:49.000000000 -0700
@@ -62,8 +62,10 @@
 allow $2_t sbin_t:dir search;

 # Access the terminal.
+allow $2_t devtty_t:chr_file rw_file_perms;
 allow $2_t $1_tty_device_t:chr_file { getattr read write ioctl };
-allow $2_t $1_devpts_t:chr_file { getattr read write };
+allow $2_t devpts_t:dir { search };
+allow $2_t $1_devpts_t:chr_file { getattr read write ioctl };
 ifdef(`gnome-pty-helper.te', `allow $2_t $1_gph_t:fd use;')
 allow $2_t var_t:dir search;
 allow $2_t var_run_t:dir search;


=======

Also, this still hangs when doing ls, or trying to remount it. 
I don't know why. Possibly related:

(1)

Slab corruption: (Tainted: P     ) start=c8748e70, len=268
Redzone: 0x5a2cf071/0x5a2cf071.
Last user: [<e0be357d>](smb_add_request+0x1da/0x25b [smbfs])
000: 6b 6b 6b 6b 6b 6b 6b 6b 6a 6b 6b 6b 6b 6b 6b 6b
100: 6b 6b 6b 6b 6b 6b 6b 6b 00 fe ff ff
Prev obj: start=c8748d58, len=268
Redzone: 0x5a2cf071/0x5a2cf071.
Last user: [<00000000>](0x0)
000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b

(2)

audit(1106721540.741:0): avc:  denied  { read } for  pid=16907
comm=smbiod laddr=192.168.2.96 lport=56841 faddr=192.168.2.96 fport=445
scontext=system_u:system_r:kernel_t tcontext=root:sysadm_r:mount_t
tclass=tcp_socket






-- 
Ivan Gyurdiev <ivg2@cornell.edu>
Cornell University


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

  parent reply	other threads:[~2005-01-26  6:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-25 19:56 Updated policy Daniel J Walsh
2005-01-25 21:56 ` Ivan Gyurdiev
2005-01-26 10:57   ` Ivan Gyurdiev
2005-01-26 12:35     ` Stephen Smalley
2005-01-26 12:18   ` Stephen Smalley
2005-01-26  6:54 ` Ivan Gyurdiev [this message]
2005-01-26  8:22 ` Ivan Gyurdiev
2005-01-27 15:50   ` Stephen Smalley
2005-01-27 15:57 ` Stephen Smalley
2005-01-27 16:30   ` Daniel J Walsh
2005-01-27 16:45   ` Daniel J Walsh
2005-01-27 16:22 ` Stephen Smalley
2005-01-27 16:33   ` Daniel J Walsh
2005-01-27 17:27     ` Ivan Gyurdiev
2005-12-10  5:26 Daniel J Walsh
2005-12-13 19:51 ` Christopher J. PeBenito

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=1106722476.17057.3.camel@cobra.ivg2.net \
    --to=ivg2@cornell.edu \
    --cc=SELinux@tycho.nsa.gov \
    --cc=dwalsh@redhat.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.