337158 Fix incorrect permissions on kdump dmesg file

Authored and Committed by liutgnu 3 years ago
    Fix incorrect permissions on kdump dmesg file
    
    Resolves: rhbz#1938165
    Upstream: fedora
    Conflict: none
    
    commit 91c802ff526a0aa0618f6d5c282a9b9b8e41bff8
    Author: Tao Liu <ltao@redhat.com>
    Date:   Thu Mar 18 16:52:46 2021 +0800
    
        Fix incorrect permissions on kdump dmesg file
    
        Also known as CVE-2021-20269. The kdump dmesg log files(kexec-dmesg.log,
        vmcore-dmesg.txt) are generated by shell redirection, which take the
        default umask value, making the files readable for group and others.
    
        This patch chmod these files, making them only accessible to owner.
    
        Signed-off-by: Tao Liu <ltao@redhat.com>
        Acked-by: Kairui Song <kasong@redhat.com>
    
    Signed-off-by: Tao Liu <ltao@redhat.com>
    
        
file modified
+1 -0
file modified
+2 -0