On 10/15/2011 11:31 AM, Anh-Duy Vu wrote:
Friends,

Please show me how to obtain policy code of targeted type for Fedora 15 which are similar to ones located at /etc/selinux/repolicy/src of Reference Policy provided by NSA.
I downloaded selinux-policy-3.9,16-39.fc15.src.rpm packet, and rebuilt it  (rpmbuild --rebuild <packet-name>).
The results of this steps are the installation file for targeted, mls ... type.
But they do not contain what I want.
You have more options. You can clone the git repo from fedorahosted

# git clone git://git.fedorahosted.org/selinux-policy.git
# git checkout f15


You can download *.src.rpm and use it. For example

# cd /tmp
# wget http://kojipkgs.fedoraproject.org/packages/selinux-policy/3.9.16/43.fc15/src/selinux-policy-3.9.16-43.fc15.src.rpm
# rpm -i selinux-policy-3.9.16-43.fc15.src.rpm
# rpmbuild -bp ~/rpmbuild/SPECS/selinux-policy.spec

And you will have all what you want in the ~/rpmbuild directory.


--
Best regards,
Anh-Duy Vu


--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux