Do I still need this patch? Upgrade to 2.3.3-RELEASE broke it.



  • Hi All….

    Hope someone can either answer this question, or tell me the steps I need to figure it out myself. 
    (I do some scripting, but I'm not really a developer, so I don't know how to find out.)

    I just upgraded to 2.3.3-RELEASE (amd64) and the patch was designed to allow a non-root user to send email from a script (running a python script that needs to send exception alerts.)

    I'm trying to find out if the patch shown below has been incorporated into pfSense, or if I have to find a correction for a patch that I have been using.

    When I click the test buttion in the patch module I get:
    Patch can NOT be applied cleanly (detail)
    Patch can NOT be reverted cleanly (detail)

    The detail just shows that it doesn't work, but it doesn't help me determine if I still need the patch.

    I did an ls -l  /usr/local/etc/php/extensions.ini and the file doesn't exist on my pfSense box, so clearly there have been some big changes in this area.

    Any help would be much appreciated.


    References

    Below are a link to the original post where the problem is described/solution is offered, and a copy of the patch.

    Original Post:
    https://forum.pfsense.org/index.php?topic=116519.msg645934#msg645934

    Allow Non Root Apps to Read /usr/local/etc/php/extensions.ini
    
    *** /etc/rc.php_ini_setup.org	Thu Jul 14 18:14:42 2016
    --- /etc/rc.php_ini_setup	Tue Aug  9 11:58:33 2016
    ***************
    *** 102,107 ****
    --- 102,108 ----
      fi
    
      /usr/bin/sort -u -o /usr/local/etc/php/extensions.ini /usr/local/etc/php/extensions.ini
    + chmod 644 /usr/local/etc/php/extensions.ini
    
      # Set upload directory
      if [ "$PLATFORM" = "nanobsd" ]; then
    
    

  • Banned

    No, you certainly do not need to patch permissions for a file that no longer exists.



  • @doktornotor:

    No, you certainly do not need to patch permissions for a file that no longer exists.

    That much I do understand… My question is about the functionality of the patch... has that been rolled into the later release.


  • Banned

    No, it hasn't been rolled anywhere. The /usr/local/etc/php/extensions.ini file does not exist any more.



  • @doktornotor:

    No, it hasn't been rolled anywhere. The /usr/local/etc/php/extensions.ini file does not exist any more.

    Thanks… I know that... but /usr/local/etc/php/extensions.ini did something before it was removed, and I want to know about functionality,

    Let me spell it out:

    Program does X that is undesirable from my perspective
    I patch it to stop it from doing X

    Program gets updated:

    Program no longer does X - I don't need any patches
    Program still does X, but does it in a different way - I need a new patch

    My question is: do I need a new patch, or has the change in function created by that patch been incorporated into 2.3.3-RELEASE.
    (I think the patch was installed in the first release of the new bootstrap UI, which is when I first started to play with pfSense.)

    I need someone who knows the code to answer the question.


  • Banned

    ZOMG…. The file does not exist any more, there's no need to make it world readable. There's on ini file per extension. Move on, nothing to be seen here.

    
    $ ls -la /usr/local/etc/php/ext-*
    -rw-r--r--  1 root  wheel  26 Jan 24 15:05 /usr/local/etc/php/ext-10-opcache.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:04 /usr/local/etc/php/ext-18-session.ini
    -rw-r--r--  1 root  wheel  20 Jan 24 15:04 /usr/local/etc/php/ext-20-bcmath.ini
    -rw-r--r--  1 root  wheel  17 Jan 24 15:05 /usr/local/etc/php/ext-20-bz2.ini
    -rw-r--r--  1 root  wheel  19 Jan 24 15:05 /usr/local/etc/php/ext-20-ctype.ini
    -rw-r--r--  1 root  wheel  18 Jan 24 15:04 /usr/local/etc/php/ext-20-curl.ini
    -rw-r--r--  1 root  wheel  17 Jan 24 15:05 /usr/local/etc/php/ext-20-dom.ini
    -rw-r--r--  1 root  wheel  20 Jan 24 15:04 /usr/local/etc/php/ext-20-filter.ini
    -rw-r--r--  1 root  wheel  17 Feb  3 10:03 /usr/local/etc/php/ext-20-ftp.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:05 /usr/local/etc/php/ext-20-gettext.ini
    -rw-r--r--  1 root  wheel  18 Jan 24 15:04 /usr/local/etc/php/ext-20-hash.ini
    -rw-r--r--  1 root  wheel  18 Jan 24 15:05 /usr/local/etc/php/ext-20-json.ini
    -rw-r--r--  1 root  wheel  18 Jan 24 15:04 /usr/local/etc/php/ext-20-ldap.ini
    -rw-r--r--  1 root  wheel  22 Jan 24 15:05 /usr/local/etc/php/ext-20-mbstring.ini
    -rw-r--r--  1 root  wheel  20 Jan 24 15:04 /usr/local/etc/php/ext-20-mcrypt.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:04 /usr/local/etc/php/ext-20-openssl.ini
    -rw-r--r--  1 root  wheel  19 Jan 24 15:04 /usr/local/etc/php/ext-20-pcntl.ini
    -rw-r--r--  1 root  wheel  17 Jan 24 15:04 /usr/local/etc/php/ext-20-pdo.ini
    -rw-r--r--  1 root  wheel  21 Oct 25 18:21 /usr/local/etc/php/ext-20-pfSense.ini
    -rw-r--r--  1 root  wheel  19 Jan 24 15:04 /usr/local/etc/php/ext-20-posix.ini
    -rw-r--r--  1 root  wheel  20 Jan  2 19:33 /usr/local/etc/php/ext-20-radius.ini
    -rw-r--r--  1 root  wheel  22 Jan 24 15:04 /usr/local/etc/php/ext-20-readline.ini
    -rw-r--r--  1 root  wheel  17 Oct  7 13:35 /usr/local/etc/php/ext-20-rrd.ini
    -rw-r--r--  1 root  wheel  19 Jan 24 15:05 /usr/local/etc/php/ext-20-shmop.ini
    -rw-r--r--  1 root  wheel  23 Jan 24 15:04 /usr/local/etc/php/ext-20-simplexml.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:04 /usr/local/etc/php/ext-20-sockets.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:05 /usr/local/etc/php/ext-20-sqlite3.ini
    -rw-r--r--  1 root  wheel  18 Oct  7 13:35 /usr/local/etc/php/ext-20-ssh2.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:05 /usr/local/etc/php/ext-20-sysvmsg.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:05 /usr/local/etc/php/ext-20-sysvsem.ini
    -rw-r--r--  1 root  wheel  21 Jan 24 15:05 /usr/local/etc/php/ext-20-sysvshm.ini
    -rw-r--r--  1 root  wheel  23 Jan 24 15:04 /usr/local/etc/php/ext-20-tokenizer.ini
    -rw-r--r--  1 root  wheel  25 Jan  2 19:34 /usr/local/etc/php/ext-20-xdebug.ini
    -rw-r--r--  1 root  wheel  17 Jan 24 15:04 /usr/local/etc/php/ext-20-xml.ini
    -rw-r--r--  1 root  wheel  23 Jan 24 15:04 /usr/local/etc/php/ext-20-xmlwriter.ini
    -rw-r--r--  1 root  wheel  18 Jan 24 15:04 /usr/local/etc/php/ext-20-zlib.ini
    -rw-r--r--  1 root  wheel  17 Oct  7 13:35 /usr/local/etc/php/ext-20-zmq.ini
    -rw-r--r--  1 root  wheel  24 Jan 24 15:05 /usr/local/etc/php/ext-30-pdo_sqlite.ini
    -rw-r--r--  1 root  wheel  21 Oct  7 13:35 /usr/local/etc/php/ext-30-suhosin.ini
    -rw-r--r--  1 root  wheel  23 Jan 24 15:05 /usr/local/etc/php/ext-30-xmlreader.ini
    
    


  • @doktornotor:

    ZOMG…. The file does not exist any more, there's no need to make it world readable. There's on ini file per extension. Move on, nothing to be seen here.

    Ok, then it looks like the functionality of that patch did get rolled into the update by changing the design of extensions.ini to  individual .ini files during the changes from 2.3.? to 2.3.3).

    Is thee an easy way I can look at/usr/local/etc/php/extensions.ini from say 2.3.1?
    How can I find this online?


  • Banned

    Dude dunno what are you after here. There's no user-configurable stuff in there and in general nothing of user interest in there either. The file was split to one per PHP extension. There's nothing to patch, fix, add, edit or invent there.

    And no, there's is no easy way to look.


Log in to reply