bugfindutils - Bugs: bug #65609, [wishlist] give find a...

 
 

bug #65609: [wishlist] give find a "secure" or "safe" option

Submitter:  None
Submitted:  Thu 18 Apr 2024 01:36:17 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  John Devitofranceschi Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.6.0
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 21 Apr 2024 04:51:28 PM UTC, comment #2: 

Also note that on some BSD find implementations [1], -s means "sort".  It would be nice to not have a conflicting meaning for -s between implementations.

[1]: https://man.freebsd.org/cgi/man.cgi?find(1)

Tavian Barnes <tavianator>
Thu 18 Apr 2024 05:27:17 PM UTC, comment #1: 

This is a valid though somewhat niche requirement. 

I think honestly the best way to implement it is to remove from the table of actions in (from memory) pred.c any that you don't want, and build a modified find binary.

That way you know for sure that an attacker can't find a way to confuse the regular find binary into reversing the effect of a -s option, and mistakes in the sudo configuration can't accidentally drop the -s.

James Youngman <jay>
Group administrator
Thu 18 Apr 2024 01:36:17 PM UTC, original submission:  

This is a "wishlist" item.

The 'top' command has a "secure" command line option (-s)

I think that it would be useful for find to also have a secure or safe option. This option would inhibit potentially destructive or system/file altering actions (eg, prevent -ok* -fprint* -exec* -delete, etc)

This would be useful to simplify the specification of "read-only" find execution via 'sudo' and similar privilege escalation tools.

jd

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 tavianator (Posted a comment)
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code