Skip to contentSkip to conversation

Data type changed?

DISCUSSION Wu Yanjun 4 participants 5 messages Sep 3, 2003 SELinux security module

lore
Share & tools
lore

Wu Yanjun

author
#0 lore raw

In Linux-2.6.0-test4, I see selinux changed the type of basic data structures significantly. eg. turn security_id_t, access_vector_t, security_class_t, etc. back to their protoypes.Could any one tell me what's the reason? and will these changes be permanent?

Signature · 13 lines
Best regards,
Wu Yanjun
---------------------------------------------------------------
Open System and Chinese Information Processing Center,
Institute of Software, Chinese Academy of Sciences,
P.O. Box 8718, Beijing 100080, CHINA
Phone: 62544129/62647145/62638063-42(Lab), 82137436(Dorm)
----------------------------------------------------------------

--
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 5 lines · Wu Yanjun

In Linux-2.6.0-test4, I see selinux changed the type of basic data structures significantly. eg. turn security_id_t, access_vector_t, security_class_t, etc. back to their protoypes.Could any one tell me what's the reason? and will these changes be permanent?

The reason these typedefs were removed was to help get SELinux accepted into the mainline kernel, where typedefs are generally frowned upon.

The changes are expected to be permanent.

- James

Signature · 9 lines
James Morris
<[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.
#2 lore raw
In reply to Wu Yanjun
Quoted 4 lines · Wu Yanjun

In Linux-2.6.0-test4, I see selinux changed the type of basic data structures significantly. eg. turn security_id_t, access_vector_t, security_class_t, etc. back to their protoypes.Could any one tell me what's the reason? and will these changes be permanent?

typedefs are considered harmful by the kernel developers, and the change is permanent.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.
#3 lore raw
Quoted 8 lines · Stephen Smalley
Quoted 4 lines · Wu Yanjun

In Linux-2.6.0-test4, I see selinux changed the type of basic data structures significantly. eg. turn security_id_t, access_vector_t, security_class_t, etc. back to their protoypes.Could any one tell me what's the reason? and will these changes be permanent?

typedefs are considered harmful by the kernel developers, and the change is permanent.

Will the typedefs be removed from the userspace tools (like checkpolicy) as well?

Karl

Signature · 10 lines
Karl MacMillan
Tresys Technology
[email protected]
(410)290-1411x134


--
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.
#4 lore raw
Quoted 2 lines · Karl MacMillan

Will the typedefs be removed from the userspace tools (like checkpolicy) as well?

No.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


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