cvtsudoers: add -l option to log merge actions
The "-l logfile" option can be used to store a log of what actions cvtsudoers took when merging multiple files. For example, which aliases were renamed, which entries were overriden or removed as duplicated.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.TH "CVTSUDOERS" "1" "November 18, 2021" "Sudo @PACKAGE_VERSION@" "General Commands Manual"
|
||||
.TH "CVTSUDOERS" "1" "November 23, 2021" "Sudo @PACKAGE_VERSION@" "General Commands Manual"
|
||||
.nh
|
||||
.if n .ad l
|
||||
.SH "NAME"
|
||||
@@ -32,6 +32,7 @@
|
||||
[\fB\-f\fR\ \fIoutput_format\fR]
|
||||
[\fB\-i\fR\ \fIinput_format\fR]
|
||||
[\fB\-I\fR\ \fIincrement\fR]
|
||||
[\fB\-l\fR\ \fIlog_file\fR]
|
||||
[\fB\-m\fR\ \fIfilter\fR]
|
||||
[\fB\-o\fR\ \fIoutput_file\fR]
|
||||
[\fB\-O\fR\ \fIstart_point\fR]
|
||||
@@ -233,6 +234,14 @@ When generating LDIF output, increment each sudoOrder attribute by
|
||||
the specified number.
|
||||
Defaults to an increment of 1.
|
||||
.TP 12n
|
||||
\fB\-l\fR \fIlog_file\fR, \fB\--logfile\fR=\fIlog_file\fR
|
||||
Log conversion warnings to
|
||||
\fIlog_file\fR
|
||||
instead of to the standard error.
|
||||
This is particularly useful when merging multiple
|
||||
\fIsudoers\fR
|
||||
files, which can generate a large number of warnings.
|
||||
.TP 12n
|
||||
\fB\-m\fR \fIfilter\fR, \fB\--match\fR=\fIfilter\fR
|
||||
Only output rules that match the specified
|
||||
\fIfilter\fR.
|
||||
|
@@ -15,7 +15,7 @@
|
||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.Dd November 18, 2021
|
||||
.Dd November 23, 2021
|
||||
.Dt CVTSUDOERS 1
|
||||
.Os Sudo @PACKAGE_VERSION@
|
||||
.Sh NAME
|
||||
@@ -30,6 +30,7 @@
|
||||
.Op Fl f Ar output_format
|
||||
.Op Fl i Ar input_format
|
||||
.Op Fl I Ar increment
|
||||
.Op Fl l Ar log_file
|
||||
.Op Fl m Ar filter
|
||||
.Op Fl o Ar output_file
|
||||
.Op Fl O Ar start_point
|
||||
@@ -187,6 +188,13 @@ This is the default input format.
|
||||
When generating LDIF output, increment each sudoOrder attribute by
|
||||
the specified number.
|
||||
Defaults to an increment of 1.
|
||||
.It Fl l Ar log_file , Fl -logfile Ns = Ns Ar log_file
|
||||
Log conversion warnings to
|
||||
.Ar log_file
|
||||
instead of to the standard error.
|
||||
This is particularly useful when merging multiple
|
||||
.Em sudoers
|
||||
files, which can generate a large number of warnings.
|
||||
.It Fl m Ar filter , Fl -match Ns = Ns Ar filter
|
||||
Only output rules that match the specified
|
||||
.Ar filter .
|
||||
|
Reference in New Issue
Block a user