audit: use given values in tty_audit enable api
In send/GET, we don't want the kernel to lie about what value is set. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
		
							parent
							
								
									4d8fe7376a
								
							
						
					
					
						commit
						b95d77fe34
					
				| @ -930,7 +930,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | ||||
| 		struct task_struct *tsk = current; | ||||
| 
 | ||||
| 		spin_lock(&tsk->sighand->siglock); | ||||
| 		s.enabled = tsk->signal->audit_tty != 0; | ||||
| 		s.enabled = tsk->signal->audit_tty; | ||||
| 		s.log_passwd = tsk->signal->audit_tty_log_passwd; | ||||
| 		spin_unlock(&tsk->sighand->siglock); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user