#!/usr/bin/perl
#
# Wrapper to protect firefox --safe-mode from abuse...

if ( $ARGV[0]=~/\-\-safe-mode/ )
{
    print "Safe mode protected, request denied...\n";
}
else
{
    print "Running firefox in normal mode...\n";
    exec "/usr/bin/firefox-actual";
}

Is a simple perl script I wrote as a wrapper.
I moved /usr/bin/firefox to /usr/bin/firefox-actual.
The only problem I see is that someone can do
firefox-actual --safe-mode.

On Sun, 2009-10-25 at 12:21 -0700, Michael Robinson wrote:
> How can one restrict who can use firefox in safe mode?
> Extensions like Procon::Latte are pointless if everyone
> can switch to safe mode and uninstall it.  Has anyone
> restricted firefox by creating a wrapper for it and 
> hiding the actual firefox executable?  Is there any
> way to fix firefox safe mode so that you can't access
> sites that aren't local to the computer?  Firefox safe
> mode isn't very safe, the developers of firefox should
> seriously consider redesigning it.
> 
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to