Skip to contentSkip to conversation

can_exec_read macro

DISCUSSION Carsten Grohmann 3 participants 3 messages Sep 3, 2002 – Sep 11, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi !

What is the difference between this tow macros: can_exec and can_exec_read? I see none.
Both use the rx_file_perms macro. And in my opinion is the second read in can_exec_read unnecessary. The rx_file_perms macro contains it.

We should change it. Or?

Carsten

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

#1 lore raw
Quoted 6 lines · Carsten Grohmann

What is the difference between this tow macros: can_exec and can_exec_read? I see none.
Both use the rx_file_perms macro. And in my opinion is the second read in can_exec_read unnecessary. The rx_file_perms macro contains it.

We should change it. Or?

You are correct, the second "read" does not seem necessary.

When I added can_exec_read() it was necessary and fixed some problems where can_exec() didn't do what was needed. I guess that in the mean time rx_file_perms has changed, I suggest checking the CVS (unfortunately I haven't got time to track it down as I'm preparing for my L-K tutorial).

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

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

#2 lore raw
In reply to Carsten Grohmann
Quoted 6 lines · Carsten Grohmann

What is the difference between this tow macros: can_exec and can_exec_read? I see none.
Both use the rx_file_perms macro. And in my opinion is the second read in can_exec_read unnecessary. The rx_file_perms macro contains it.

We should change it. Or?

This macro and all of its uses have been removed from the sourceforge CVS tree.

--
Stephen D. Smalley, NAI Labs
[email protected]

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