<p>While using the relatively new "--signfiles" rpm option (i.e. rpm --addsign [--signfiles] PACKAGE), I found that IMA signatures for non-executable configuration files, as indicated by the RPM packager, were not applied as part of an RPM upgrade (and I assume installation) even though the signatures for these configuration files were in the metadata for the RPM package. Conceptually, IMHO, the author of the IMA policy in place for the system should be determining what files are appraised (and therefore need  IMA signatures affixed to them) and not the packager of an RPM. If the author of the IMA policy wants to appraise certain files of an RPM package, whether they are configuration files or not, why shouldn't they be allowed to do this and allowed to use RPM to update the appraised files. On some systems, for example embedded systems or appliances like a smart phone, where these configuration files are not allowed to be altered (i.e. are immutable), the owner of the system should be allowed to specify an IMA policy that protects these immutable configuration files from alteration. Of course, if the author of the IMA policy cannot prevent the configuration file from being updated, for example, the IMA policy is running on a system which is open and users can logon and edit configuration files or if the post install script of the RPM updates the configuration file, and many more examples, then the author of the IMA policy cannot list the file as being appraised since for their use of the RPM, the configuration file is mutable.</p>
<p>Therefore, could the RPM IMA signature support be changed so that the RPM updating code treats the configuration file(s) like any other file and sets an IMA signature on them. The signature is an extended attribute of course (i.e. security.ima) and therefore ignored if the configuration file is not in the IMA policy as being appraised (which given how the code works today, the configuration file cannot be in the IMA policy because appraisal will fail due to the signature missing).</p>
<p>Thank you.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/364">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb80wzR49MZX2pp6ob1TOj73AKvV0Ysks5s7DHOgaJpZM4QtgFi">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80078Cp7s7AWV-NGUWpYi5TUBg-j6ks5s7DHOgaJpZM4QtgFi.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/issues/364"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rpm-software-management/rpm","title":"rpm-software-management/rpm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rpm-software-management/rpm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Request to apply IMA signatures to files even if deemed a configuration file (#364)"}],"action":{"name":"View Issue","url":"https://github.com/rpm-software-management/rpm/issues/364"}}}</script>