bugGNU nano - Bugs: bug #31625, Restricted mode broken by key...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31625: Restricted mode broken by key bindings

Submitter:  Chris Allegretta <astyanax>
Submitted:  Fri 12 Nov 2010 05:19:04 AM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

Fri 12 Nov 2010 09:14:29 AM UTC, comment #3: 

Cheers, works fine over here.

Charlie Somerville <charliesome>
Fri 12 Nov 2010 06:26:44 AM UTC, comment #2: 

Alright, sorry for that, it seems that when I implemented the key bindings code the checks for restricted mode were suddenly being bypassed.  This should now be fixed in trunk and in the 2.2 branch with r4520.  I'm putting up a test tarball at http://www.nano-editor.org/dist/test/nano-2.2.6pre1.tar.gz if you'd like to give it a try and let me know if it works for you.

Chris Allegretta <astyanax>
Group administrator
Fri 12 Nov 2010 05:20:09 AM UTC, comment #1: 

have a fix for this, just running it through the regression script before checking in.

Chris Allegretta <astyanax>
Group administrator
Fri 12 Nov 2010 05:19:04 AM UTC, original submission:  

Per email:

The man page for nano claims that:

>> In restricted mode, nano will not:
>>    *   read or write to any file not specified on the command line;


However, it is still possible to read arbitrary files that are not
specified on the command line by tapping the INS key and typing a
filename, like /etc/passwd, for example.

I hope this is fixed as I'm planning to use nano as the message editor in my BBS software, and I do not want users being able to access any file on the system.

Chris Allegretta <astyanax>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Updated the item)
  • -email is unavailable- added by charliesome (Posted a comment)
  • -email is unavailable- added by astyanax (Submitted the item)
  • -email is unavailable- added by astyanax
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-24 bens StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2010-11-12 astyanax StatusIn Progress Ready For Test
    2010-11-12 astyanax SummaryRestericted mode broken by key bindings Restricted mode broken by key bindings
    2010-11-12 astyanax StatusNone In Progress
    2010-11-12 astyanax Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code