<div dir="ltr"><div>Package: ntp</div><div>Version: 1:4.2.8p7+dfsg-3</div><div>Severity: important</div><div><br></div>Hi!<div><br></div><div>ntp now ships an apparmor profile, which is nice.  However, for users that actually have apparmor enabled, this new package is causing apparmor to fail to start:</div><div><br></div><div><div>● apparmor.service - LSB: AppArmor initialization</div><div>   Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled)</div><div>   Active: failed (Result: exit-code) since Thu 2016-05-19 16:02:53 CEST; 1min 31s ago</div><div>     Docs: man:systemd-sysv-generator(8)</div><div>  Process: 54241 ExecStop=/etc/init.d/apparmor stop (code=exited, status=0/SUCCESS)</div><div>  Process: 54256 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)</div><div><br></div><div>... systemd[1]: Starting LSB: AppArmor initialization...</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> apparmor[54256]: Starting AppArmor profiles:AppArmor parser error for /etc/apparmor.d/usr.sbin.ntpd in /etc/apparmor.d/usr.sbin.ntpd at line 81: Could not open 'local/usr.sbin.ntpd'</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> apparmor[54256]: AppArmor parser error for /etc/apparmor.d/usr.sbin.ntpd in /etc/apparmor.d/usr.sbin.ntpd at line 81: Could not open 'local/usr.sbin.ntpd'</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> apparmor[54256]:  failed!</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> systemd[1]: apparmor.service: Control process exited, code=exited status=123</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> systemd[1]: Failed to start LSB: AppArmor initialization.</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> systemd[1]: apparmor.service: Unit entered failed state.</div><div><span style="line-height:1.5">...</span><span class="inbox-inbox-Apple-converted-space" style="line-height:1.5"> </span> systemd[1]: apparmor.service: Failed with result 'exit-code'.</div></div><div><br></div><div>This is due to the fact that <span style="line-height:1.5">/etc/apparmor.d/usr.sbin.ntpd includes </span></div><div><span style="line-height:1.5">local/usr.sbin.ntpd which doesn't exist.  Other packages that ship files in </span></div><div><span style="line-height:1.5">/etc/apparmor.d which include files in local, also ship the files in local:</span></div><div><span style="line-height:1.5"><br></span></div><div><div>marga:/etc/apparmor.d$ cat local/usr.bin.evince </div><div># Site-specific additions and overrides for usr.bin.evince.</div><div># For more details, please see /etc/apparmor.d/local/READM</div></div><div><br></div><div><div>marga:/etc/apparmor.d$ cat local/usr.sbin.cups-browsed </div><div># Site-specific additions and overrides for usr.sbin.cups-browsed.</div><div># For more details, please see /etc/apparmor.d/local/README.</div></div><div><br></div><div>This should be fixed by adding a call to dh_apparmor (see for example: </div><div><a href="https://sources.debian.net/src/evince/3.20.0-3/debian/rules/">https://sources.debian.net/src/evince/3.20.0-3/debian/rules/</a>), I think this should do </div><div>the trick:</div><div><span style="font-family:monospace;font-size:13px;line-height:19.2px;white-space:pre">  dh_apparmor --profile-name=usr.sbin.ntp -pntp</span><br></div><div><span style="font-family:monospace;font-size:13px;line-height:19.2px;white-space:pre"><br></span></div><div><span style="font-size:13px;line-height:19.2px;white-space:pre">While this is easy to workaround by just touching the file, I don't think it's acceptable </span></div><div><span style="font-size:13px;line-height:19.2px;white-space:pre">for ntp to break my already working apparmor installation, so this could arguably </span></div><div><span style="font-size:13px;line-height:19.2px;white-space:pre">be severity critical with </span><span style="line-height:1.5">justification: makes unrelated software on the system break.</span></div><br class="inbox-inbox-Apple-interchange-newline"><div>Please fix ASAP.</div><div><br>Thanks.</div></div><div dir="ltr">-- <br></div><div><div dir="ltr">Cheers,<div>Marga</div></div></div>