From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: how to understand this SELinux stuff? Date: Sat, 04 May 2019 21:58:18 +0200 Message-ID: <8736lukn51.fsf@elephly.net> References: <29974c7468844bd9eeed7dfa362b4bc4@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN0nl-00041D-NR for help-guix@gnu.org; Sat, 04 May 2019 15:58:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN0nk-0003aB-Pl for help-guix@gnu.org; Sat, 04 May 2019 15:58:29 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hN0nk-0003YX-H9 for help-guix@gnu.org; Sat, 04 May 2019 15:58:28 -0400 In-reply-to: <29974c7468844bd9eeed7dfa362b4bc4@disroot.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@disroot.org Cc: help-guix@gnu.org > #. type: enumerate > #: doc/guix.texi:1291 > msgid "We could generate a much more restrictive policy at installation t= ime, so that only the @emph{exact} file name of the currently installed @co= de{guix-daemon} executable would be labelled with @code{guix_daemon_exec_t}= , instead of using a broad regular expression. The downside is that root wo= uld have to install or upgrade the policy at installation time whenever the= Guix package that provides the effectively running @code{guix-daemon} exec= utable is upgraded." > > I cannot understand the latter sentence. What is the 'guix package that p= rovides the effectively running guix-damon'? Can I say just: if guix-daemon= 's executable was upgraded? The point here is that the absolute file name of =E2=80=9Cguix-daemon=E2=80= =9D may very well differ over time. You may be running /gnu/store/abcdefg=E2=80=A6-guix-=E2=80=A6/bin/guix-daemon today and /gnu/store/xyz=E2=80=A6-guix-=E2=80=A6/bin/guix-daemon tomorrow. SELinux p= olicies work by defining rules matching absolute file names, so if the rule were to attached to a *specific* item in the store it would have to be updated whenever the daemon would be used from a *different* location in the store, such as after upgrades. -- Ricardo