bugacl - Bugs: bug #62383, getfacl: support JSON output for...


bug #62383: getfacl: support JSON output for machine parsing

Submitter:  None
Submitted:  Fri 29 Apr 2022 01:59:29 PM UTC
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Wed 04 Jan 2023 07:51:47 AM UTC, comment #1: 

patches should be sent to the mailing list for discussion

personally i don't see a problem with adding a JSON output for machine readability

Mike Frysinger <vapier>
Group Member
Fri 29 Apr 2022 01:59:29 PM UTC, original submission:  

Hello there,

this is almost certainly not the right way to do this; so apols for that ;)

  For reasons I myself barely understand, I was looking to see how<br/> difficult it might be to add support for json output to getfacl.

Anyways, I pulled the code, created a branch and hacked away.

In this first attempt I have managed to produce some valid json<br/> output: by modifying do_print().  But I see it will require furthur<br/> thought in relation to acl_to_any_text() or perhaps a separate function like do_show().

I've attached a patch for this PoC. Changes are against next@a966a2b.<br/>  The other three files are an example of current output, and two possible alternative future desired outputs.

Anyways.  Thought I'd share this "because".
So feel free to ignore, or like whatever, etc...

HappyHacking :)



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

Attach Files:

Attached Files
file #53157:  br-next.getfacl-json-output.patch added by None (5KiB - text/x-patch - NoComment)
file #53158:  getfacl-ouput.json added by None (266B - application/json - NoComment)
file #53159:  getfacl-ouput-desired.json added by None (375B - application/json - NoComment)
file #53160:  getfacl-ouput-desired-2.json added by None (349B - application/json - NoComment)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by vapier (Posted a comment)

    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.


    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 vapier Severity3 - Normal 1 - Wish
    2023-01-04 vapier StatusNone Postponed
        Summary-- NOTABUG :D -- FeatureRequest(kindof) getfacl: support JSON output for machine parsing
    2022-04-29 None Attached File- Added br-next.getfacl-json-output.patch, #53157
        Attached File- Added getfacl-ouput.json, #53158
        Attached File- Added getfacl-ouput-desired.json, #53159
        Attached File- Added getfacl-ouput-desired-2.json, #53160

    Back to the top

    Powered by Savane 3.13-ec27.
    Corresponding source code