From 862f0bd0052b3a4a99f64350711254dc85746638 Mon Sep 17 00:00:00 2001 From: Moritz Muehlenhoff Date: Thu, 4 Jan 2024 10:23:09 +0100 Subject: cvelist.el: New defun to mark a CVE as a non issue --- conf/cvelist.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'conf') diff --git a/conf/cvelist.el b/conf/cvelist.el index ba79bb6b70..326c1fbf50 100644 --- a/conf/cvelist.el +++ b/conf/cvelist.el @@ -17,6 +17,7 @@ (setq last-nfu "") (setq bugnum "") +(setq non_issue_reason "Crash in CLI tool, no security impact") (setq newsrcpkg "") (setq default_distro "bullseye") @@ -41,6 +42,14 @@ (end-of-line) (insert " (bug #" bugnum ")" )) +(defun debian-cvelist-mark-non-issue () + "Mark an entry as a non issue." + (setq bugnum (read-string "Why is this a non-issue?: " non_issue_reason)) + (interactive) + (end-of-line) + (insert " (unimportant)" ) + (insert "\n\tNOTE: " non_issue_reason )) + ; TODO: Read supported distros from central config and prompt for applicable suites (defun debian-cvelist-insert-nodsa () "Insert no-dsa comment based on the current source entry." @@ -100,6 +109,7 @@ (define-key map (kbd "C-c C-x") 'debian-cvelist-insert-not-affected) (define-key map (kbd "C-c C-p") 'debian-cvelist-insert-postponed) (define-key map (kbd "C-c C-b") 'debian-cvelist-insert-bug) + (define-key map (kbd "C-c C-u") 'debian-cvelist-mark-non-issue) (define-key map (kbd "C-c C-p") 'debian-cvelist-ptslookup) map) "Keymap for `debian-cvelist-mode'.") -- cgit v1.2.3