HEX
Server: Apache/2
System: Linux jingle.dotvndns.vn 2.6.32-754.17.1.el6.x86_64 #1 SMP Tue Jul 2 12:42:48 UTC 2019 x86_64
User: chuahuehuong (1863)
PHP: 7.3.16
Disabled: apache_note,apache_setenv,proc_get_status,exec,passthru,proc_nice,proc_terminate,shell_exec,system,ini_restore,syslog,define_syslog_variables,symlink,link,error_log,leak,dbmopen,closelog,stream_socket_server,execl,escapeshellcmd,ini_alter,dl,show_source,posix_getpwuid,posix_geteuid,posix_getegid,posix_getgrgid,open_basedir,safe_mode_include_dir,pcntl_exec,pcntl_fork,pclose,virtual,openlog,popen,escapeshellarg,eval,calo,posix_getpwuid,symlinks,symlink,getpwuid,mail
Upload Files
File: //sbin/mount.tmpfs
#! /bin/bash
#
# Copyright (C) 2009 Eric Paris <eparis@redhat.com>
#                    Daniel Walsh <dwalsh@redhat.com>
#                    Karel Zak <kzak@redhat.com>
#
# http://bugzilla.redhat.com/show_bug.cgi?id=476964
#
# Usage:
# /sbin/mount.tmpfs spec dir [-sfnv] [-o options]
#

case $1 in
  -h|--help|-?)
      echo "mount.tmpfs is a private mount(8) wrapper for tmpfs."
      echo "Don't use it directly!"
      exit 1
      ;;
esac

restricted=1

if [ $UID -eq 0 ] && [ $UID -eq $EUID ]; then
  restricted=0
fi

# mount(8) in restricted mode (for non-root users) does not allow to use any
# mount options, types or so on command line. We have to call mount(8) with
# mountpoint only.  All necessary options have to be defined in /etc/fstab.
#
# https://bugzilla.redhat.com/show_bug.cgi?id=615719
#
if [ $restricted -eq 1 ]; then
  exec /bin/mount -i "$2"
fi

# Remount with context mount options is unsupported
# http://bugzilla.redhat.com/show_bug.cgi?id=563267
#
if ! echo "$@" | grep -q -E '\-o.*remount';  then

  if ! echo "$@" | grep -q -E '(fs|def|root)?context='; then
     con=$(ls --scontext -d "$2" | cut -f 1 -d ' ')
     if [ -n "$con" ] && [ "$con" != "?" ] && [ "$con" != "unlabeled" ]; then 
        exec /bin/mount "$@" -o "rootcontext=\"$con\"" -i -t tmpfs
     fi
  fi

fi

exec /bin/mount "$@" -i -t tmpfs