ANDROID: fix permission error of page_pinner
longterm_pinner/alloc_contig_failed should be 444 for reading for everyone and threshold/failure_traking should be 644 to allow read/write root. Bug: 191827366 Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I5493c6ae6d39b692282e5428416da80a7d555aa0
This commit is contained in:
@@ -475,17 +475,17 @@ static int __init page_pinner_init(void)
|
|||||||
|
|
||||||
pp_debugfs_root = debugfs_create_dir("page_pinner", NULL);
|
pp_debugfs_root = debugfs_create_dir("page_pinner", NULL);
|
||||||
|
|
||||||
debugfs_create_file("longterm_pinner", 0400, pp_debugfs_root, NULL,
|
debugfs_create_file("longterm_pinner", 0444, pp_debugfs_root, NULL,
|
||||||
&proc_longterm_pinner_operations);
|
&proc_longterm_pinner_operations);
|
||||||
|
|
||||||
debugfs_create_file("threshold", 0444, pp_debugfs_root, NULL,
|
debugfs_create_file("threshold", 0644, pp_debugfs_root, NULL,
|
||||||
&pp_threshold_fops);
|
&pp_threshold_fops);
|
||||||
|
|
||||||
debugfs_create_file("alloc_contig_failed", 0400,
|
debugfs_create_file("alloc_contig_failed", 0444,
|
||||||
pp_debugfs_root, NULL,
|
pp_debugfs_root, NULL,
|
||||||
&proc_alloc_contig_failed_operations);
|
&proc_alloc_contig_failed_operations);
|
||||||
|
|
||||||
debugfs_create_file("failure_tracking", 0444,
|
debugfs_create_file("failure_tracking", 0644,
|
||||||
pp_debugfs_root, NULL,
|
pp_debugfs_root, NULL,
|
||||||
&failure_tracking_fops);
|
&failure_tracking_fops);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user