Skip to contentSkip to conversation

Something seems to be self-contradictory

DISCUSSION Park Lee 2 participants 2 messages Feb 16, 2004 – Feb 17, 2004 SELinux security module

lore
Share & tools
lore

Park Lee

author
#0 lore raw

Dear sir,
Thank you for taking time to reply.

You say that:

Quoted 2 lines

A domain is a special type.
When you define types they can have attributes, one >attribute is "domain" which indicates that it's possible to >use that type for labelling processes.

Do you mean that program is assigned a domain?
Then what is the difference between a program and a common file? There are some examples:

# sshd_exec_t is the type of the sshd executable.
# sshd_key_t is the type of the ssh private key files
type sshd_exec_t, file_type, exec_type, sysadmfile;
type sshd_key_t, file_type, sysadmfile;
(in selinux-usr\policy\domains\program\ssh.te)

In my opinion, the sshd executable is a program ,and the ssh private key files are common files. But, Why Doesn't the type of sshd executable have a domain attribute with it?

Thanks

Yours,
Park Lee
2004-02-17

---------------------------------
Do You Yahoo!?
完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间

#1 lore raw
Quoted 7 lines · Park Lee

You say that:

Quoted 4 lines

A domain is a special type.
When you define types they can have attributes, one >attribute is "domain" which indicates that it's possible to >use that type for labelling processes.

Do you mean that program is assigned a domain?

Every running process has a domain.

Quoted 2 lines

Then what is the difference between a program and a common file? There are some examples:

The only files that can be labeled with a "domain" are under /proc.

Quoted 9 lines
# sshd_exec_t is the type of the sshd executable.
# sshd_key_t is the type of the ssh private key files
type sshd_exec_t, file_type, exec_type, sysadmfile;
type sshd_key_t, file_type, sysadmfile;
(in selinux-usr\policy\domains\program\ssh.te)

In my opinion, the sshd executable is a program ,and the ssh private key files are common files. But, Why Doesn't the type of sshd executable have a domain attribute with it?

In SE Linux as in regular Unix, there is nothing really special about a file that can be executed. In Unix permissions the difference between an executable and a data file is 1 bit in the file mode. In SE Linux the difference is the presence of execute permission in the SE policy.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.