From 4f863ccc9531130be3f4aecea341a0e8a66c6f8c Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sat, 20 Feb 2010 20:30:37 -0800 Subject: wallet-backend gets the third store argument from stdin if missing If there is no third argument to store, read it from standard input instead. This is the preferred way of running wallet-backend, using stdin=last support from remctl 2.14 and later. Receiving the third argument as a regular argument continues to be supported for backward compatibility. --- config/wallet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/wallet') diff --git a/config/wallet b/config/wallet index 2e0b142..06dc39d 100644 --- a/config/wallet +++ b/config/wallet @@ -3,5 +3,5 @@ # This is a remctld configuration fragment to run wallet-backend, which # implements the server side of the wallet system. -wallet store /usr/sbin/wallet-backend logmask=4 ANYUSER +wallet store /usr/sbin/wallet-backend stdin=4 ANYUSER wallet ALL /usr/sbin/wallet-backend ANYUSER -- cgit v1.2.3 From c75eb196a37ce8ca1acd791267cfb36ee30fdcdb Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 7 Jul 2010 10:36:00 -0700 Subject: Add sample remctl configuration for wallet-report --- config/wallet | 6 ++++-- config/wallet-report.acl | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 config/wallet-report.acl (limited to 'config/wallet') diff --git a/config/wallet b/config/wallet index 06dc39d..19b86fa 100644 --- a/config/wallet +++ b/config/wallet @@ -1,7 +1,9 @@ # /etc/remctl/conf.d/wallet -- Run wallet-backend for the wallet system. # -# This is a remctld configuration fragment to run wallet-backend, which -# implements the server side of the wallet system. +# This is a remctld configuration fragment to run wallet-backend and +# wallet-report, which implement the server side of the wallet system. wallet store /usr/sbin/wallet-backend stdin=4 ANYUSER wallet ALL /usr/sbin/wallet-backend ANYUSER + +wallet-report /usr/sbin/wallet-report /etc/remctl/acl/wallet-report diff --git a/config/wallet-report.acl b/config/wallet-report.acl new file mode 100644 index 0000000..d4c1aa6 --- /dev/null +++ b/config/wallet-report.acl @@ -0,0 +1,6 @@ +# /etc/remctl/acl/wallet-report -- ACL for wallet reporting. +# +# This is the ACL controlling who can run reports against the wallet +# database using wallet-report via remctl. This backend doesn't allow any +# modification of data or retrieval of stored data, but does allow +# examination of all of the metadata in the wallet database. -- cgit v1.2.3 From 92b3dc284e3f11742c10ab10811eaaf2b181666f Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 7 Sep 2010 11:48:43 -0700 Subject: Fix a syntax error in the sample wallet-report remctl configuration --- config/wallet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/wallet') diff --git a/config/wallet b/config/wallet index 19b86fa..61914a1 100644 --- a/config/wallet +++ b/config/wallet @@ -6,4 +6,4 @@ wallet store /usr/sbin/wallet-backend stdin=4 ANYUSER wallet ALL /usr/sbin/wallet-backend ANYUSER -wallet-report /usr/sbin/wallet-report /etc/remctl/acl/wallet-report +wallet-report ALL /usr/sbin/wallet-report /etc/remctl/acl/wallet-report -- cgit v1.2.3