Do not generate polkit rules file

This essentially reverts commit <e1019e9>, which added
an extra step for generating the policy file.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Ján Tomko 2018-03-14 12:08:37 +01:00
parent af41cf5957
commit ab20f5059c
3 changed files with 6 additions and 16 deletions

1
.gitignore vendored
View File

@ -135,7 +135,6 @@
/src/libvirt_lxc /src/libvirt_lxc
/src/libvirtd /src/libvirtd
/src/libvirtd*.logrotate /src/libvirtd*.logrotate
/src/libvirtd.policy
/src/locking/libxl-lockd.conf /src/locking/libxl-lockd.conf
/src/locking/libxl-sanlock.conf /src/locking/libxl-sanlock.conf
/src/locking/lock_daemon_dispatch_stubs.h /src/locking/lock_daemon_dispatch_stubs.h

View File

@ -75,7 +75,7 @@ EXTRA_DIST += \
remote/test_libvirtd.aug.in \ remote/test_libvirtd.aug.in \
remote/libvirtd.aug \ remote/libvirtd.aug \
remote/libvirtd.conf \ remote/libvirtd.conf \
remote/libvirtd.policy.in \ remote/libvirtd.policy \
remote/libvirtd.rules \ remote/libvirtd.rules \
remote/libvirtd.sasl \ remote/libvirtd.sasl \
remote/libvirtd.sysctl \ remote/libvirtd.sysctl \
@ -121,12 +121,8 @@ CLEANFILES += test_libvirtd.aug
if WITH_POLKIT if WITH_POLKIT
policydir = $(datadir)/polkit-1/actions policydir = $(datadir)/polkit-1/actions
policyauth = auth_admin_keep
endif WITH_POLKIT endif WITH_POLKIT
BUILT_SOURCES += libvirtd.policy
CLEANFILES += libvirtd.policy
man8_MANS += libvirtd.8 man8_MANS += libvirtd.8
libvirtd_SOURCES = $(LIBVIRTD_SOURCES) libvirtd_SOURCES = $(LIBVIRTD_SOURCES)
@ -213,7 +209,8 @@ endif ! WITH_SYSCTL
if WITH_POLKIT if WITH_POLKIT
install-polkit:: install-polkit::
$(MKDIR_P) $(DESTDIR)$(policydir) $(MKDIR_P) $(DESTDIR)$(policydir)
$(INSTALL_DATA) libvirtd.policy $(DESTDIR)$(policydir)/org.libvirt.unix.policy $(INSTALL_DATA) $(srcdir)/remote/libvirtd.policy \
$(DESTDIR)$(policydir)/org.libvirt.unix.policy
$(MKDIR_P) $(DESTDIR)$(datadir)/polkit-1/rules.d $(MKDIR_P) $(DESTDIR)$(datadir)/polkit-1/rules.d
$(INSTALL_DATA) $(srcdir)/remote/libvirtd.rules \ $(INSTALL_DATA) $(srcdir)/remote/libvirtd.rules \
$(DESTDIR)$(datadir)/polkit-1/rules.d/50-libvirt.rules $(DESTDIR)$(datadir)/polkit-1/rules.d/50-libvirt.rules
@ -258,12 +255,6 @@ install-sasl:
uninstall-sasl: uninstall-sasl:
endif ! WITH_SASL endif ! WITH_SASL
libvirtd.policy: remote/libvirtd.policy.in $(top_builddir)/config.status
$(AM_V_GEN) sed \
-e 's|[@]authaction[@]|$(policyauth)|g' \
< $< > $@-t && \
mv $@-t $@
libvirtd.init: remote/libvirtd.init.in $(top_builddir)/config.status libvirtd.init: remote/libvirtd.init.in $(top_builddir)/config.status
$(AM_V_GEN)sed \ $(AM_V_GEN)sed \
-e 's|[@]localstatedir[@]|$(localstatedir)|g' \ -e 's|[@]localstatedir[@]|$(localstatedir)|g' \

View File

@ -43,9 +43,9 @@ License along with this library. If not, see
<defaults> <defaults>
<!-- Any program can use libvirt in read/write mode if they <!-- Any program can use libvirt in read/write mode if they
provide the root password --> provide the root password -->
<allow_any>@authaction@</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>@authaction@</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>@authaction@</allow_active> <allow_active>auth_admin_keep</allow_active>
</defaults> </defaults>
</action> </action>
</policyconfig> </policyconfig>