-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathssh-auth-cmd-marionette
executable file
·546 lines (476 loc) · 22.2 KB
/
ssh-auth-cmd-marionette
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
#! /usr/bin/env -S perl -wT
use strict;
use warnings;
use Sys::Syslog();
use Fcntl();
use FileHandle();
use Symbol();
use Getopt::Long();
use English qw( -no_match_vars );
use File::Spec();
delete $ENV{PATH};
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
my %os_paths = (
freebsd => '/usr/local/bin',
dragonfly => '/usr/local/bin',
netbsd => '/usr/pkg/bin',
openbsd => '/usr/local/bin',
);
local $ENV{PATH} = '/usr/bin:/bin:/usr/sbin:/sbin'
. (
defined $os_paths{$OSNAME}
? q[:] . $os_paths{$OSNAME}
: q[]
);
our $VERSION = '1.62';
my $binary = 'firefox';
my $ident = 'ssh-auth-cmd-marionette';
my %options = ( facility => 'LOG_LOCAL0' );
sub _origin {
my (
$source_ip_address, $source_port,
$destination_ip_address, $destination_port
) = split q[ ], $ENV{SSH_CONNECTION};
return $source_ip_address;
}
sub _tmp_directory_regex {
my (%parameters) = @_;
my $regex = qr{(?:/var)?/tmp}smx;
if ( $OSNAME eq 'darwin' ) { # getconf DARWIN_USER_TEMP_DIR
my $handle = FileHandle->new();
my $command = 'getconf';
my @arguments = qw(DARWIN_USER_TEMP_DIR);
if ( my $pid = $handle->open(q[-|]) ) {
my $content;
while ( my $line = <$handle> ) {
$content .= $line;
}
close $handle
or die "Failed to successfully complete:$EXTENDED_OS_ERROR\n";
chomp $content;
$content =~ s/\/$//smx; # remove trailing / for darwin
my $quoted_content = quotemeta $content;
$regex = qr/$quoted_content/smx;
}
elsif ( defined $pid ) {
eval {
exec {$command} $command, @arguments
or die "Failed to exec '$command':$EXTENDED_OS_ERROR\n";
} or do {
chomp $EVAL_ERROR;
Sys::Syslog::openlog( $ident, 'cons', $parameters{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_ERR(), $EVAL_ERROR );
Sys::Syslog::closelog();
};
exit 1;
}
else {
die "Failed to fork:$EXTENDED_OS_ERROR\n";
}
}
return $regex;
}
eval {
Getopt::Long::GetOptions(
\%options, 'help',
'version', 'facility:s',
'allow-binary:s@', 'force-binary:s',
'regex-allow-binary-directories:s', 'regex-allow-binary-paths:s',
'regex-allow-binary:s', 'scp-only',
);
if ( $options{help} ) {
require Pod::Simple::Text;
my $parser = Pod::Simple::Text->new();
$parser->parse_from_file($PROGRAM_NAME);
exit 0;
}
elsif ( $options{version} ) {
print "$VERSION\n"
or die "Failed to print to STDOUT:$EXTENDED_OS_ERROR\n";
exit 0;
}
my $tmp_directory_regex = _tmp_directory_regex(%options);
my $tmp_directory = $ENV{TMPDIR} || '/tmp';
$tmp_directory =~ s/\/$//smx; # remove trailing / for darwin
my $root_dir_regex;
my $quoted_tmp_directory = quotemeta $tmp_directory;
if ( $tmp_directory =~
s/^(${tmp_directory_regex}\/firefox_marionette_remote\w+)(?:\/tmp)?$/$1/smx
)
{
$quoted_tmp_directory = quotemeta $tmp_directory;
$root_dir_regex = qr/$quoted_tmp_directory/smx;
}
else {
$quoted_tmp_directory = quotemeta $tmp_directory;
$root_dir_regex =
qr/${$tmp_directory_regex}\/firefox_marionette_remote\w+/smx;
}
%options = _validate_parameters(%options);
my ( $allowed_binary_directories_regex,
$allowed_binary_paths_regex, $allowed_binary_regex )
= _filesystem_regexes(%options);
my $sub_directory_regex = qr/(?:profile|downloads|tmp|addons|certs)/smx;
my $profile_names = q[(?:] . (
join q[|],
map { quotemeta } (
qw(
bookmarks.html
prefs.js
mimeTypes.rdf
search.json.mozlz4
)
)
) . q[)];
my $profile_file_regex = qr/profile\/$profile_names/smx;
my $file_regex = qr/[+\w\-()]{1,255}(?:[.][+\w\-()]{1,255})*/smx;
my $downloads_regex = qr/downloads\/$file_regex/smx;
my $addons_regex = qr/(?:addons|profile)\/$file_regex/smx;
my $ca_name_regex = qr/Firefox::Marionette[ ]Root[ ]CA/smx;
my $version_updates_regex = q[(?:]
. (
join q[|], qr/active\-update[.]xml/smx, qr/application[.]ini/smx,
qr/updates\/\d+\/update[.]status/smx
) . q[)];
my $xvfb_regex =
qr/xvfb\-run[ ]\-a[ ]\-s[ ]"-screen[ ]0[ ]\d+x\d+x\d+"[ ]/smx;
my $certutil_arguments_regex = join q[],
qr/[ ]\-A/smx,
qr/[ ]\-d[ ](?:dbm|sql):$root_dir_regex\/profile/smx,
qr/[ ]\-i[ ]$root_dir_regex\/certs\/root_ca_\d{1,10}[.]cer/smx,
qr/[ ]\-n[ ]$ca_name_regex[ ]\d{1,10}[ ]\-t[ ]TC,,/smx;
my $firefox_arguments_regex = join q[],
qr/[ ]\-marionette/smx,
qr/(?:[ ]\-width[ ]\d{1,8})?/smx,
qr/(?:[ ]\-height[ ]\d{1,8})?/smx,
qr/(?:[ ]\-\-jsconsole)?/smx,
qr/(?:[ ]\-MOZ_LOG=[[:alnum:],:]+)?/smx,
qr/(?:[ ]-safe\-mode)?/smx,
qr/(?:[ ]\-headless)?/smx,
qr/[ ](?:\-profile[ ]$root_dir_regex\/profile|\-P[ ][[:alnum:]]+)/smx,
qr/(?:[ ]\-\-no\-remote)?/smx,
qr/(?:[ ]\-\-new\-instance)?/smx,
qr/(?:[ ]\-\-devtools)?/smx,
qr/(?:[ ]\-\-kiosk)?/smx;
my $prefs_grep_patterns_regex = join q[],
qr/\-e[ ]marionette[ ]/smx,
qr/\-e[ ]security[ ]/smx;
my @darwin_regexes;
if ( $OSNAME eq 'darwin' ) {
my $plist_prefix_regex =
_get_plist_prefix_regex( @{ $options{'allow-binary'} } );
@darwin_regexes = (
qr/ls[ ]-1[ ]"$allowed_binary_regex"/smx,
qr/plutil[ ]-convert[ ]json[ ]-o[ ]-[ ]"(?:$plist_prefix_regex)\/Info[.]plist"/smx,
);
}
my @sftp_server_regexs;
if ( !$options{'scp-only'} ) {
@sftp_server_regexs = (
map { qr/${_}[ ]?/smx }
( # Adding a space for new sftp-server in Fedora 40 (openssh-9.6p1)
quotemeta '/usr/libexec/openssh/sftp-server', # Redhat, Debian
quotemeta '/usr/libexec/sftp-server', # FreeBSD
)
);
}
my $darwin_profile_regex =
qr/Library\/Application\\[ ]Support\/Firefox\/Profiles/smx;
my $named_profile_regex =
qr/(?:[.]mozilla\/firefox|$darwin_profile_regex)/smx;
my $profile_path_regex =
qr/(?:$root_dir_regex\/profile|$named_profile_regex\/[[:alnum:].\-]+)/smx;
my $scp_parameters_regex =
qr/(?:[ ]\-v)?[ ]\-p[ ]\-[tf][ ](?:-P[ ]\d{2}[ ])?(?:\-v[ ])?/smx;
my $quoted_linux_profiles_ini = quotemeta q[.mozilla/firefox];
my $quoted_darwin_profiles_ini =
quotemeta q[Library/Application Support/Firefox];
my $profiles_ini_regex =
qr/(?:$quoted_linux_profiles_ini|$quoted_darwin_profiles_ini)\/profiles[.]ini/smx;
my $allowed_commands_regex = join q[|],
qr/"$allowed_binary_regex"[ ]\-\-version/smx,
@darwin_regexes,
@sftp_server_regexs,
qr/uname[ ][|][|][ ]ver/smx,
qr/echo[ ]"TMPDIR=\\"\$TMPDIR\\""/smx,
qr/echo[ ]"DISPLAY=\\"\$DISPLAY\\""/smx,
qr/echo[ ]"TMP=\\"\$TMP\\""/smx,
qr/mkdir[ ](?:\-m[ ]700[ ])?$root_dir_regex/smx,
qr/mkdir[ ](?:\-m[ ]700[ ])?$root_dir_regex\/$sub_directory_regex/smx,
qr/scp$scp_parameters_regex"?$root_dir_regex\/$profile_file_regex"?/smx,
qr/scp(?:[ ]\-v)?[ ]\-p[ ]\-t[ ]"?$root_dir_regex\/$addons_regex"?/smx,
qr/scp[ ]\-p[ ]\-t[ ]$root_dir_regex\/certs\/root_ca_\d{1,10}[.]cer/smx,
qr/scp[ ]\-p[ ]\-[fT][ ](?:\-P[ ])?$allowed_binary_directories_regex\/$version_updates_regex/smx,
qr/scp(?:[ ]\-v)?[ ]\-p[ ]\-[tf][ ]"?$root_dir_regex\/$downloads_regex"?/smx,
qr/scp[ ]\-p[ ]\-[tf][ ]"?$profiles_ini_regex"?/smx,
qr/kill[ ]\-0[ ]\d{1,8}/smx,
qr/which[ ]$allowed_binary_regex/smx,
qr/readlink[ ]\-f[ ]$allowed_binary_paths_regex/smx,
qr/rm[ ]\-Rf[ ]$root_dir_regex(?:[ ]$quoted_tmp_directory\/Temp\-[\d\-a-f]{1,255})*/smx,
qr/ls[ ]-1[ ]"$allowed_binary_directories_regex(?:\/updates(?:\/\d+)?)?"/smx,
qr/ls[ ]-1[ ]"$root_dir_regex\/downloads"/smx,
qr/certutil$certutil_arguments_regex/smx,
qr/(?:$xvfb_regex)?"$allowed_binary_regex"$firefox_arguments_regex/smx,
qr/grep[ ]$prefs_grep_patterns_regex$profile_path_regex\/prefs[.]js/smx;
my $user_name = getpwuid $EFFECTIVE_USER_ID;
if ( $ENV{SSH_ORIGINAL_COMMAND} =~ m/^($allowed_commands_regex)$/smx ) {
my ($command_and_arguments) = ($1);
if ( $options{'force-binary'} ) {
$command_and_arguments =~
s/^"$allowed_binary_regex"/"$options{'force-binary'}"/smx;
}
Sys::Syslog::openlog( $ident, 'cons', $options{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_INFO(),
"Executing '$command_and_arguments' as '$user_name' from "
. _origin() );
Sys::Syslog::closelog();
exec $command_and_arguments
or die "Failed to '$command_and_arguments':$EXTENDED_OS_ERROR\n";
}
else {
my $origin = _origin();
Sys::Syslog::openlog( $ident, 'cons', $options{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_WARNING(),
'Unrecognisable command "'
. $ENV{SSH_ORIGINAL_COMMAND}
. "\" as '$user_name' from $origin with a quoted TMPDIR of \"$quoted_tmp_directory\" and a root directory regex of \"$root_dir_regex\""
);
Sys::Syslog::closelog();
}
1;
} or do {
my $eval_error = $EVAL_ERROR;
chomp $eval_error;
Sys::Syslog::openlog( $ident, 'cons', $options{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_ERR(), $eval_error );
Sys::Syslog::closelog();
};
exit 1;
sub _validate_parameters {
my (%parameters) = @_;
my $facility = $parameters{facility};
eval { $parameters{facility} = Sys::Syslog->$facility(); } or do {
my $original = $parameters{facility};
$parameters{facility} = Sys::Syslog::LOG_LOCAL0();
Sys::Syslog::openlog( $ident, 'cons', $parameters{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_WARNING(),
"Failed to parse --facility argument of '$original':$EVAL_ERROR" );
Sys::Syslog::closelog();
};
if ( !defined $ENV{SSH_ORIGINAL_COMMAND} ) {
die
"$PROGRAM_NAME requires the SSH_ORIGINAL_COMMAND environment variable to be defined\n";
}
if ( !defined $parameters{'allow-binary'} ) {
$parameters{'allow-binary'} = ['firefox'];
if ( $OSNAME eq 'darwin' ) {
push @{ $parameters{'allow-binary'} },
'/Applications/Firefox.app/Contents/MacOS/firefox',
'/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox',
'/Applications/Firefox Nightly.app/Contents/MacOS/firefox',
'/Applications/Waterfox Current.app/Contents/MacOS/waterfox';
}
}
if ( ( defined $parameters{'force-binary'} )
&& ( $parameters{'force-binary'} =~ /^(.*)$/smx ) )
{
my ($untainted) = ($1);
$parameters{'force-binary'} =
$untainted; # passed in on the command line from .authorized_keys file
Sys::Syslog::openlog( $ident, 'cons', $parameters{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_DEBUG(),
"Untainting --force-binary of '$parameters{'force-binary'}'" );
Sys::Syslog::closelog();
}
return %parameters;
}
sub _filesystem_regexes {
my (%parameters) = @_;
if ( ( $parameters{'regex-allow-binary-directories'} )
&& ( $parameters{'regex-allow-binary-paths'} )
&& ( $parameters{'regex-allow-binary'} ) )
{
my $allowed_binary_directories_regex;
if ( $parameters{'regex-allow-binary-directories'} =~ /^(.*)$/smx ) {
($allowed_binary_directories_regex) = ($1); # untaint
}
my $allowed_binary_paths_regex;
if ( $parameters{'regex-allow-binary-paths'} =~ /^(.*)$/smx ) {
($allowed_binary_paths_regex) = ($1); # untaint
}
my $allowed_binary_regex;
if ( $parameters{'regex-allow-binary'} =~ /^(.*)$/smx ) {
($allowed_binary_regex) = ($1); # untaint
}
return ( $allowed_binary_directories_regex,
$allowed_binary_paths_regex, $allowed_binary_regex );
}
if ( $parameters{'regex-allow-binary-directories'} ) {
Sys::Syslog::openlog( $ident, 'cons', $parameters{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_WARNING(),
'Ignoring --regex-allow-binary-directories parameter. --regex-allow-binary-directories must be combined with --regex-allow-binary-paths and --regex-allow-binary'
);
Sys::Syslog::closelog();
}
if ( $parameters{'regex-allow-binary-paths'} ) {
Sys::Syslog::openlog( $ident, 'cons', $parameters{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_WARNING(),
'Ignoring --regex-allow-binary-paths parameter. --regex-allow-binary-paths must be combined with --regex-allow-binary-directories and --regex-allow-binary'
);
Sys::Syslog::closelog();
}
if ( $parameters{'regex-allow-binary'} ) {
Sys::Syslog::openlog( $ident, 'cons', $parameters{facility} );
Sys::Syslog::syslog( Sys::Syslog::LOG_WARNING(),
'Ignoring --regex-allow-binary parameter. --regex-allow-binary must be combined with --regex-allow-binary-directories and --regex-allow-binary-paths'
);
Sys::Syslog::closelog();
}
my @allowed_binaries;
my @allowed_binary_paths;
my @allowed_binary_directories;
foreach my $binary ( @{ $parameters{'allow-binary'} } ) {
if ( $binary eq 'firefox' ) {
push @allowed_binaries, 'firefox';
push @allowed_binary_paths, '/usr/bin/firefox';
push @allowed_binary_directories, '/usr/bin';
my %os_allowed_binary_paths = (
freebsd => '/usr/local/bin/firefox',
dragonfly => '/usr/local/bin/firefox',
netbsd => '/usr/pkg/bin/firefox',
openbsd => '/usr/local/bin/firefox',
);
if ( $os_allowed_binary_paths{$OSNAME} ) {
push @allowed_binary_paths, $os_allowed_binary_paths{$OSNAME};
}
my %os_allowed_binary_directories = (
freebsd => '/usr/local/lib/firefox',
dragonfly => '/usr/local/lib/firefox',
netbsd => '/usr/pkg/bin',
openbsd => '/usr/local/lib/firefox',
);
if ( $os_allowed_binary_directories{$OSNAME} ) {
push @allowed_binary_directories,
$os_allowed_binary_directories{$OSNAME};
}
}
else {
push @allowed_binaries, $binary;
push @allowed_binary_paths, $binary;
my ( $volume, $directories ) = File::Spec->splitpath($binary);
push @allowed_binary_directories,
File::Spec->catdir( $volume, $directories );
if ( $OSNAME eq 'darwin' ) {
$directories =~ s{/Contents/MacOS/$}{/Contents/Resources/}smx;
push @allowed_binary_directories,
File::Spec->catdir( $volume, $directories );
}
}
}
my $allowed_binaries =
q[(?:] . ( join q[|], map { quotemeta } @allowed_binaries ) . q[)];
my $allowed_binary_paths =
q[(?:] . ( join q[|], map { quotemeta } @allowed_binary_paths ) . q[)];
my $allowed_binary_directories = q[(?:]
. ( join q[|], map { quotemeta } @allowed_binary_directories ) . q[)];
my $allowed_binary_directories_regex = qr/$allowed_binary_directories/smx;
my $allowed_binary_paths_regex = qr/$allowed_binary_paths/smx;
my $allowed_binary_regex = qr/$allowed_binaries/smx;
return ( $allowed_binary_directories_regex,
$allowed_binary_paths_regex, $allowed_binary_regex );
}
sub _get_plist_prefix_regex {
my (@allow_binaries) = @_;
my %allowed_plist_prefixes;
foreach my $binary (@allow_binaries) {
my $prefix = $binary;
if ( $prefix =~ s/Contents\/MacOS\/(?:water|fire)fox$/Contents/smx ) {
$allowed_plist_prefixes{$prefix} = 1;
}
}
my $regex = join q[|],
map { quotemeta } sort { $a cmp $b } keys %allowed_plist_prefixes;
return $regex;
}
__END__
=head1 NAME
ssh-auth-cmd-marionette - ssh ~/.ssh/authorized_keys command for Firefox::Marionette
=head1 VERSION
Version 1.62
=head1 USAGE
~/.ssh/authorized_keys entry to allow the remote user to run a default firefox as user@server (all syslog entries go to LOG_LOCAL0)
no-agent-forwarding,no-pty,no-X11-forwarding,permitopen="127.0.0.1:*",command="/usr/local/bin/ssh-auth-cmd-marionette" ssh-rsa AAAA ... == user@server
~/.ssh/authorized_keys entry to allow the remote user to run a default firefox as user@server (all syslog entries go to LOG_LOCAL1)
no-agent-forwarding,no-pty,no-X11-forwarding,permitopen="127.0.0.1:*",command="/usr/local/bin/ssh-auth-cmd-marionette --facility=LOG_LOCAL1" ssh-rsa AAAA ... == user@server
~/.ssh/authorized_keys entry to force the remote user to run /path/to/firefox when logging in as user@server (all syslog entries go to LOG_LOCAL0)
no-agent-forwarding,no-pty,no-X11-forwarding,permitopen="127.0.0.1:*",command="/usr/local/bin/ssh-auth-cmd-marionette --force-binary=/path/to/firefox" ssh-rsa AAAA ... == user@server
~/.ssh/authorized_keys entry to allow the remote user to run /path/to/firefox or /path/to/waterfox when logging in as user@server (all syslog entries go to LOG_LOCAL0)
no-agent-forwarding,no-pty,no-X11-forwarding,permitopen="127.0.0.1:*",command="/usr/local/bin/ssh-auth-cmd-marionette --allow-binary=/path/to/firefox --allow-binary=/path/to/waterfox" ssh-rsa AAAA ... == user@server
=head1 DESCRIPTION
This program is intended to allow secure remote usage of the perl Firefox::Marionette library via ssh. It allows a list
of pre-defined commands that can be permitted via ssh public key authentication.
Be default, it will log all commands that the remote perl library requests to run on this machine to the LOG_LOCAL0 syslog
facility. If desired, syslog messages can be sent to a facility of your choosing, using the syslog(3) documentation for
a list of allowed facilities and the --facility argument for this program.
An example .ssh/authorized_keys file using this program would look like this
no-agent-forwarding,no-pty,no-X11-forwarding,permitopen="127.0.0.1:*",command="/usr/local/bin/ssh-auth-cmd-marionette" ssh-rsa AAAA ... == user@server
By default, the only firefox version that may be used will be present in the PATH environment variable. However, the remote user may be permitted to specify the
path to a different firefox binary with (multiple) --allow-binary parameters, or simply forced to use the firefox that the local user is setup for with the
--force-binary parameter.
=head1 REQUIRED ARGUMENTS
None
=head1 OPTIONS
Option names can be abbreviated to uniqueness and can be stated with singe or double dashes, and option values can be separated from the option name by a space or '=' (as with Getopt::Long). Option names are also case-
sensitive.
=over 4
=item * --help - This page.
=item * --version - print the version of ssh-auth-cmd-marionette.
=item * --facility - use L<facility|https://metacpan.org/pod/Sys::Syslog#Facilities> for L<syslog|https://linux.die.net/man/3/syslog> messages, instead of the default LOG_LOCAL0.
=item * --allow-binary - allow this path to be used in calls to L<new|Firefox::Marionette#new>. This option may be specified multiple times
=item * --force-binary - regardless of the settings that L<new()|Firefox::Marionette#new> requests, send all requests for the firefox binary to the path requested.
=item * --scp-only - do not allow use of the SFTP protocol. See the scp parameter in the L<new()|Firefox::Marionette#new> method.
=back
=head1 CONFIGURATION
ssh-auth-cmd-marionette requires no configuration files or environment variables.
=head1 DEPENDENCIES
ssh-auth-cmd-marionette requires the following non-core Perl modules
=over
=item *
L<Pod::Simple::Text|Pod::Simple::Text>
=back
=head1 DIAGNOSTICS
Check syslog for any errors
The following command will show syslog on OS X.
C<log show --info --predicate 'process=="perl5.18"' --last 10m>
=head1 INCOMPATIBILITIES
This program depends on L<exec|https://linux.die.net/man/3/exec> and hence will not work in a Windows environment. Always interested in any ssh incompatibilities. Patches welcome.
=head1 EXIT STATUS
This program will either L<exec|https://linux.die.net/man/3/exec> a permitted program or exit with a 1.
=head1 BUGS AND LIMITATIONS
To report a bug, or view the current list of bugs, please visit L<https://github.com/david-dick/firefox-marionette/issues>
=head1 AUTHOR
David Dick C<< <[email protected]> >>
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2024, David Dick C<< <[email protected]> >>. All rights reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic/perlartistic>.
=head1 DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.