commit | 935256192996de6317e3afe5dc1b2f8d9c210afd | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Wed Jul 14 11:13:10 2021 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 21 12:49:51 2021 +0200 |
tree | 392d4950a8d60924e49825c6ca1c58535ff1c76c | |
parent | 5d4317abd2223eea5884f7e28d1047d5e87d4a6f [diff] |
amiserial: expand serial_isroot Having a macro (serial_isroot) for capable(CAP_SYS_ADMIN) does not save us from anything. It rather obfuscates the code. Hence expand serial_isroot to be explicit like every other driver is. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210714091314.8292-7-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>