Ignore:
Timestamp:
Nov 10, 2009, 12:35:05 AM (13 years ago)
Author:
andersk
Message:
execsys: Disable binfmt_misc extensions.

For Mono, use a magic number instead.

For PHP web scripts, we already run php-cgi from suexec.  For PHP cron
and mail scripts, Perl, and Python, require a real shebang line.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/execsys/execsys-binfmt

    r1338 r1357  
    2727{
    2828    mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
    29     cat > /proc/sys/fs/binfmt_misc/register <<REGISTER
    30 :pl:E::pl::/usr/bin/perl:
    31 :php:M::<?php::/usr/bin/php-cgi:
    32 :py:E::py::/usr/bin/python:
    33 :exe:E::exe::/usr/bin/mono:
    34 REGISTER
     29    echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
    3530}
    3631
Note: See TracChangeset for help on using the changeset viewer.