Skip to contentSkip to conversation

Added project policy code and got "semodule_package: ..."

DISCUSSION John Chludzinski 2 participants 3 messages Mar 23, 2015 SELinux security module

lore
Share & tools
lore
#0 lore raw

I added project specific policy code to policy/module/<project-dir>.

Then I ran:

packages/clip-selinux-policy/clip-selinux-policy> make conf

Quoted 1 line
Quoted 1 line
Quoted 1 line

"make conf" added all the project module to "module" (e.g., projmod1 = module, projmod2 = module, etc.) in policy/modules.conf.

then I ran:

packages/clip-selinux-policy/clip-selinux-policy> make modules TYPE="mls" MLS_SENS=1

and got "semodule_package: Failed to mmap tmp/<projmod1>.mod.fc: Invalid argument"

Any suggestions?

---John

#1 lore raw
Quoted 11 lines · John Chludzinski

I added project specific policy code to policy/module/<project-dir>.

Then I ran:

packages/clip-selinux-policy/clip-selinux-policy> make conf

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"make conf" added all the project module to "module" (e.g., projmod1 = module, projmod2 = module, etc.) in policy/modules.conf.

then I ran:

Quoted 7 lines

packages/clip-selinux-policy/clip-selinux-policy> make modules TYPE="mls" MLS_SENS=1

and got "semodule_package: Failed to mmap tmp/<projmod1>.mod.fc:
Invalid argument"

Any suggestions?

Take follow-ups to the clip mailing list, please.

http://oss.tresys.com/mailman/listinfo/clip

#2 lore raw

Understood: "Take follow-ups to the clip mailing list, please."

Resolved the problem.

---John

Quoted 23 lines · Stephen Smalley
Quoted 11 lines · John Chludzinski

I added project specific policy code to policy/module/<project-dir>.

Then I ran:

packages/clip-selinux-policy/clip-selinux-policy> make conf

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"make conf" added all the project module to "module" (e.g., projmod1 = module, projmod2 = module, etc.) in policy/modules.conf.

then I ran:

Quoted 7 lines

packages/clip-selinux-policy/clip-selinux-policy> make modules TYPE="mls" MLS_SENS=1

and got "semodule_package: Failed to mmap tmp/<projmod1>.mod.fc:
Invalid argument"

Any suggestions?

Take follow-ups to the clip mailing list, please.

http://oss.tresys.com/mailman/listinfo/clip