Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-13 Thread Bernhard Schuster
Closed #1319.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#event-3653848372___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-13 Thread Panu Matilainen
Like said, rpm has some support for packaging policies BUT nothing inside or 
outside rpm actually uses that data. So for all practical purposes, rpm has no 
special support for packaging policies, hence the Fedora style packaging.

The partial support is a leftover from attempted policy support, which might 
some day be reimplemented in a different way, but there are no actual plans to 
do so.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#issuecomment-673392751___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-13 Thread Bernhard Schuster
The only meaningful reference I could find on packaging policies is 
https://fedoraproject.org/wiki/PackagingDrafts/SELinux_Independent_Policy  

Looking at memcached, the policy file is simply packaged as a sub-package of 
the actual package 
https://src.fedoraproject.org/rpms/memcached/blob/6e70f59bdad0ba4cc1a1a7e5abc237d2e2f1c13a/f/memcached.spec#_120
 with a bunch of `pre` and `post` actions.
But there is also an additional explicit dependency on the selinux sub-package 
declared, `Requires: (%{name}-selinux if selinux-policy-targeted)` which poses 
the question, what purpose does the header really have?
Is any of those headers actually being used in practice

I really appreciate getting a few answers to my questions, thanks! :+1: 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#issuecomment-673386624___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-12 Thread Panu Matilainen
In other words, it simply means that rpm doesn't actually *do* anything with 
it. The only thing rpm does with SELinux is that on install, it queries the 
system policy for correct file contexts.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#issuecomment-673282790___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-12 Thread Bernhard Schuster
> The context tags are unused since rpm 4.6 or so. There's some support for 
> packaging SELinux policies in librpmbuild but no corresponding install-time 
> support.

Could you elaborate a bit on what "install time support" exactly means?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#issuecomment-672806482___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-12 Thread Panu Matilainen
The context tags are unused since rpm 4.6 or so. There's some support for 
packaging SELinux policies in librpmbuild but no corresponding install-time 
support.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#issuecomment-672766382___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-08-11 Thread Bernhard Schuster
anyone :question: 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319#issuecomment-671953452___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Missing concise descriptions for rpm header tags (#1319)

2020-07-23 Thread Bernhard Schuster
In both 
http://ftp.rpm.org/max-rpm/s1-rpm-file-format-rpm-file-format.html

and the 4.15.1 release there are

```
{ "RPMTAG_FSCONTEXTS", "Fscontexts", RPMTAG_FSCONTEXTS, RPM_STRING_ARRAY_TYPE, 
RPM_ARRAY_RETURN_TYPE, 1 },
{ "RPMTAG_RECONTEXTS", "Recontexts", RPMTAG_RECONTEXTS, RPM_STRING_ARRAY_TYPE, 
RPM_ARRAY_RETURN_TYPE, 1 },
```

defined, but description is not very concise what they are.

Since I am looking into impl policy file support as part of 
https://github.com/Richterrettich/rpm-rs/issues/18 and I would like to know if 
the above are relevant to policies at all, and what they are (either way).

So far all I can see that is relevant for selinux is 
```
{ "RPMTAG_POLICIES", "Policies", RPMTAG_POLICIES, RPM_STRING_ARRAY_TYPE, 
RPM_ARRAY_RETURN_TYPE, 0 },
```

Could you shed some lights here?



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1319___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint