All of lore.kernel.org
 help / color / mirror / Atom feed
From: dE <de.techno@gmail.com>
To: selinux@tycho.nsa.gov
Subject: Re: SAMBA WITH SELINUX
Date: Sat, 24 May 2014 08:42:30 +0530	[thread overview]
Message-ID: <53800E1E.1090709@gmail.com> (raw)
In-Reply-To: <53800D97.2090103@gmail.com>

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

On 05/24/14 08:40, dE wrote:
> On 05/24/14 01:02, toản cù wrote:
>> Hi all!
>>
>>     I just researching policy in selinux and Samba , SELinux has 
>> policy module separate for samba. I only know the label samba_share_t 
>> used to share data when labeled in SELinux enforcing mode.
>>
>>     I want to use SELinux further intervention on the issue 
>> of decentralization for each user to access data on the samba. How 
>> the same file (*. docx, *. txt), user1 can read, write but  user2 is 
>> not.
>>
>>     And one more question: in a group have different users the same 
>> access to the samba. those users have some same rights, and some the 
>> right different. example the rights  to read,write on a file is 
>> different. How to make a difference the rights between users in the 
>> same group
>>
>>  Look forward your help!
>>
>> Thanks!
>>
>>
>> -- 
>> Mr.Toan-Cu Xuan
>>
>> School of Electronics and Telecommunications
>>
>> Hanoi University of Science and Technology
>>
>> 1 Dai Co Viet, Ha noi, Viet nam.
>>
>> Phone: 01656228762
>>
>> Email:xuantoanbkfet@gmail.com <mailto:Email%3Axuantoanbkfet@gmail.com>
>>
>>
>>
>> _______________________________________________
>> Selinux mailing list
>> Selinux@tycho.nsa.gov
>> To unsubscribe, send email toSelinux-leave@tycho.nsa.gov.
>> To get help, send an email containing "help" toSelinux-request@tycho.nsa.gov.
>
> I don't think smbd spawns a new process when a new user logs in 
> (that's why we have 'force user'), so there's no way for SELinux to 
> identify the login user of the SMB service.
>
> Otherwise what could've been done is set the umask to 077 and inherit 
> owner, inherit permissions to yes. So DAC whould've been good enough 
> for the purpose.
>
> I dont remember how

Actually it does.

Set 'username map' and you get what you want with DAC.

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

      reply	other threads:[~2014-05-24  3:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23 19:32 SAMBA WITH SELINUX toản cù
2014-05-24  3:10 ` dE
2014-05-24  3:12   ` dE [this message]

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=53800E1E.1090709@gmail.com \
    --to=de.techno@gmail.com \
    --cc=selinux@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.