Skip to contentSkip to conversation

kernel_filesystem.patch

refpolicy Daniel J Walsh 3 participants 12 messages Jun 2, 2010 – Jun 7, 2010

lore
Share & tools
lore
#11 lore raw
In reply to Christopher J. PeBenito
Quoted 8 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Because /cgroup (dir) is owned by the libcg package. The cgroupfs files are not. Besides that cgroupfs_t seems an appropriate name.

Quoted 10 lines
Signature · 9 lines
-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100604/7b9c3dec/attachment.bin

#3 lore raw
In reply to Daniel J Walsh
Quoted 11 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#4 lore raw
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Quoted 5 lines
Quoted 1 line

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

Quoted 10 lines
Signature · 9 lines
-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100607/6a39ad43/attachment.bin

#5 lore raw
Quoted 18 lines · Dominick Grift
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Quoted 5 lines
Quoted 1 line

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

Quoted 6 lines

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

I don't see a need for two different types.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#6 lore raw
Quoted 19 lines · Christopher J. PeBenito
Quoted 18 lines · Dominick Grift
Quoted 16 lines · Christopher J. PeBenito
Quoted 11 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

Quoted 8 lines
Quoted 6 lines

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

I don't see a need for two different types.

I guess strictly speaking there is no need for two types. We can just add the fc spec for /cgroup -d to filesystem.fc And let libcgroup and other domains call cgroup filesystem interfaces.

We might lose a bit flexibility but most likely insignificant anyway.

Quoted 6 lines
Signature · 4 lines
-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100607/3246972a/attachment.bin

#7 lore raw
Quoted 27 lines · Dominick Grift
Quoted 26 lines · Christopher J. PeBenito
Quoted 24 lines · Dominick Grift
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Quoted 5 lines
Quoted 1 line

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

Quoted 4 lines
Quoted 1 line

I don't see a need for two different types.

I guess strictly speaking there is no need for two types. We can just add the fc spec for /cgroup -d to filesystem.fc

Thats what I had in mind.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#8 lore raw
Quoted 28 lines · Christopher J. PeBenito
Quoted 27 lines · Dominick Grift
Quoted 26 lines · Christopher J. PeBenito
Quoted 24 lines · Dominick Grift
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Quoted 5 lines
Quoted 1 line

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I don't see a need for two different types.

I guess strictly speaking there is no need for two types. We can just add the fc spec for /cgroup -d to filesystem.fc

Thats what I had in mind.

So.. you want cgroup_t instead of cgroupfs_t?

You realize that when we merge the two, that the chosen type will get the mountpoint attribute even if its a directory under /cgroup?

If we can come to some agreement i will submit a patch with the changes if required.

Quoted 6 lines
Signature · 4 lines
-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100607/d4227978/attachment.bin

#9 lore raw
Quoted 29 lines · Dominick Grift
Quoted 28 lines · Christopher J. PeBenito
Quoted 27 lines · Dominick Grift
Quoted 26 lines · Christopher J. PeBenito
Quoted 24 lines · Dominick Grift
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Quoted 5 lines
Quoted 1 line

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I don't see a need for two different types.

I guess strictly speaking there is no need for two types. We can just add the fc spec for /cgroup -d to filesystem.fc

Thats what I had in mind.

So.. you want cgroup_t instead of cgroupfs_t?

Yes, since the filesystem is called cgroup and the cgroup_t type already exists to label it.

Quoted 2 lines

You realize that when we merge the two, that the chosen type will get the mountpoint attribute even if its a directory under /cgroup?

Yes.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#10 lore raw
Quoted 39 lines · Christopher J. PeBenito
Quoted 29 lines · Dominick Grift
Quoted 28 lines · Christopher J. PeBenito
Quoted 27 lines · Dominick Grift
Quoted 26 lines · Christopher J. PeBenito
Quoted 24 lines · Dominick Grift
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_filesystem.patch

Changes for /cgroup policy

While moving the labeling of cgroup from kernel to filesystem modules may make sense, I'm not sure why the type and interfaces need to be renamed.

Quoted 5 lines
Quoted 1 line

Well it is a file system?

Thats not necessarily a good reason, since other pseudo filesystems exist in other modules, for good reason. It also doesn't explain the renaming.

the libcgroup suite was one of the reasons to rename. libcgroup which automates cgroup management installs the /cgroup mountpoint. whilst that directories content is the cgroup pseudo filesystem. So we needed two types for almost the same purpose. So we choose cgroup_t for libcgroups /cgroup mountpoint and we decided to rename the cgroupfs pseudo fs cgroupfs

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I don't see a need for two different types.

I guess strictly speaking there is no need for two types. We can just add the fc spec for /cgroup -d to filesystem.fc

Thats what I had in mind.

So.. you want cgroup_t instead of cgroupfs_t?

Quoted 8 lines

Yes, since the filesystem is called cgroup and the cgroup_t type already exists to label it.

Quoted 2 lines

You realize that when we merge the two, that the chosen type will get the mountpoint attribute even if its a directory under /cgroup?

Yes.

I don't care either way. Just want to get it settled.