[ 
https://issues.apache.org/jira/browse/HDFS-15516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17196150#comment-17196150
 ] 

jianghua zhu commented on HDFS-15516:
-------------------------------------

Hi [~elgoiri] , [~hexiaoqiao] , here I have submitted a new patch file 
(HDFS-15516.004.patch), can you review it?

When creating a file, add the audit log, for example:
allowed=true ugi=zhujianghua (auth:SIMPLE) ip=/127.0.0.1 
cmd=create(options=[CREATE, OVERWRITE]) src=/debug.log dst=null 
perm=zhujianghua:supergroup:rw-r--r - proto=rpc

When appending a file, add the audit log, for example:
allowed=true ugi=zhujianghua (auth:SIMPLE) ip=/127.0.0.1 
cmd=append(options=[APPEND]) src=/debug.log dst=null perm=null proto=rpc

If you have different ideas, you can share them here.
thank you very much.

 

> Add info for create flags in NameNode audit logs
> ------------------------------------------------
>
>                 Key: HDFS-15516
>                 URL: https://issues.apache.org/jira/browse/HDFS-15516
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: Shashikant Banerjee
>            Assignee: jianghua zhu
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HDFS-15516.001.patch, HDFS-15516.002.patch, 
> HDFS-15516.003.patch, HDFS-15516.004.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Currently, if file create happens with flags like overwrite , the audit logs 
> doesn't seem to contain the info regarding the flags in the audit logs. It 
> would be useful to add info regarding the create options in the audit logs 
> similar to Rename ops. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to