From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Virus-Scanned: amavisd-new at rosalinux.ru To: Alexey Gladkov References: <47512e07a05fdc1ebf794e304eade1c4c13605fb.1576183643.git.legion@altlinux.org> <62997b7b-169b-931c-b714-af85f1e54148@rosalinux.ru> <20200617224350.bjy2ga6eynonjrrf@comp-core-i7-2640m-0182e6> From: Mikhail Novosyolov Message-ID: <05ba22f1-38b1-4189-8b48-317f3d999ef6@rosalinux.ru> Date: Thu, 18 Jun 2020 01:53:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200617224350.bjy2ga6eynonjrrf@comp-core-i7-2640m-0182e6> Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: quoted-printable Cc: devel@lists.altlinux.org Subject: Re: [devel] [PATCH hasher-priv v1 2/3] Add systemd and sysvinit service files X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 22:53:56 -0000 Archived-At: List-Archive: List-Post: 18.06.2020 01:43, Alexey Gladkov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Thu, Jun 18, 2020 at 01:31:38AM +0300, Mikhail Novosyolov wrote: >> 13.12.2019 14:42, Alex Gladkov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> From: Alexey Gladkov >>> >>> Signed-off-by: Alexey Gladkov >>> --- >>> hasher-priv/Makefile | 4 ++ >>> hasher-priv/hasher-privd.service | 11 ++++ >>> hasher-priv/hasher-privd.sysvinit | 86 +++++++++++++++++++++++++++++= ++ >>> 3 files changed, 101 insertions(+) >>> create mode 100644 hasher-priv/hasher-privd.service >>> create mode 100755 hasher-priv/hasher-privd.sysvinit >>> >>> diff --git a/hasher-priv/Makefile b/hasher-priv/Makefile >>> index 82aa385..c73216f 100644 >>> --- a/hasher-priv/Makefile >>> +++ b/hasher-priv/Makefile >>> @@ -14,6 +14,8 @@ MAN8PAGES =3D $(PROJECT).8 hasher-useradd.8 >>> TARGETS =3D $(PROJECT) hasher-privd hasher-useradd $(HELPERS) $(MAN5= PAGES) $(MAN8PAGES) >>> =20 >>> sysconfdir =3D /etc >>> +initdir=3D$(sysconfdir)/rc.d/init.d >>> +systemd_unitdir=3D/lib/systemd/system >>> libexecdir =3D /usr/lib >>> sbindir =3D /usr/sbin >>> mandir =3D /usr/share/man >>> @@ -72,6 +74,8 @@ install: all >>> $(MKDIR_P) -m750 $(DESTDIR)$(helperdir) >>> $(INSTALL) -p -m700 $(PROJECT) $(DESTDIR)$(helperdir)/ >>> $(INSTALL) -p -m755 $(HELPERS) $(DESTDIR)$(helperdir)/ >>> + $(MKDIR_P) -m755 $(DESTDIR)$(initdir) >>> + $(INSTALL) -p -m755 hasher-privd.sysvinit $(DESTDIR)$(initdir)/hash= er-privd >>> $(MKDIR_P) -m755 $(DESTDIR)$(sbindir) >>> $(INSTALL) -p -m755 hasher-privd $(DESTDIR)$(sbindir)/ >>> $(INSTALL) -p -m755 hasher-useradd $(DESTDIR)$(sbindir)/ >>> diff --git a/hasher-priv/hasher-privd.service b/hasher-priv/hasher-pr= ivd.service >>> new file mode 100644 >>> index 0000000..e5ed9ac >>> --- /dev/null >>> +++ b/hasher-priv/hasher-privd.service >>> @@ -0,0 +1,11 @@ >>> +[Unit] >>> +Description=3DA privileged helper for the hasher project >>> +ConditionVirtualization=3D!container >> =D0=90 =D0=B5=D1=81=D0=BB=D0=B8 =D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9=D0= =BD=D0=B5=D1=80=D1=83 =D0=B2=D1=8B=D0=B4=D0=B0=D0=BD=D1=8B =D0=BD=D1=83=D0= =B6=D0=BD=D1=8B=D0=B5 =D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D0=BB=D0=B5=D0=B3=D0= =B8=D0=B8/capabilities, =D1=82=D0=BE =D0=BF=D0=BE=D1=87=D0=B5=D0=BC=D1=83= =D0=BD=D0=B5=D0=BB=D1=8C=D0=B7=D1=8F? =D0=9C=D0=BE=D0=B6=D0=B5=D1=82, =D0= =BB=D1=83=D1=87=D1=88=D0=B5 ConditionCapability=3D? > =D0=AF =D0=BD=D0=B5 =D1=81=D0=BF=D0=B5=D1=86=D0=B8=D0=B0=D0=BB=D0=B8=D1= =81=D1=82 =D0=B2 systemd. =D0=AF =D0=BD=D0=B5 =D1=81=D0=BC=D0=BE=D0=B3=D1= =83 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D1=82=D1=8C ConditionCapability > =D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D0=BE. =D0=AF =D0=B1=D1= =80=D0=B0=D0=BB =D0=B7=D0=B0 =D0=BE=D1=81=D0=BD=D0=BE=D0=B2=D1=83 =D0=BA=D0= =B0=D0=BA=D0=BE=D0=B9-=D1=82=D0=BE =D0=B4=D1=80=D1=83=D0=B3=D0=BE=D0=B9 =D1= =81=D0=B5=D1=80=D0=B2=D0=B8=D1=81. =D0=95=D1=81=D0=BB=D0=B8 =D0=B2=D1=8B = =D1=81=D1=87=D0=B8=D1=82=D0=B0=D0=B5=D1=82=D0=B5, =D1=87=D1=82=D0=BE > =D1=8D=D1=82=D0=BE =D0=BA=D1=80=D0=B8=D1=82=D0=B8=D1=87=D0=BD=D0=BE, =D1= =82=D0=BE =D0=BC=D0=BE=D0=B3=D1=83 =D1=83=D0=B1=D1=80=D0=B0=D1=82=D1=8C =D1= =8D=D1=82=D0=BE=D1=82 =D1=81=D0=B5=D1=80=D0=B2=D0=B8=D1=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