Skip to content

Commit 51272a9

Browse files
committed
be more verbose
1 parent e11f048 commit 51272a9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cr-restore.c

+1
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,7 @@ static int prepare_creds(int pid, struct task_restore_args *args, char **lsm_pro
23012301
*lsm_profile = NULL;
23022302

23032303
if (ce->lsm_profile) {
2304+
pr_err("%s\n", ce->lsm_profile);
23042305
if (validate_lsm(ce) < 0)
23052306
return -1;
23062307

lsm.c

+5
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ static void get_host_lsm()
108108
get_label = apparmor_get_label;
109109
lsmtype = LSMTYPE__APPARMOR;
110110
name = "apparmor";
111+
pr_err("\n");
111112
return;
112113
}
113114

@@ -121,13 +122,15 @@ static void get_host_lsm()
121122
get_label = selinux_get_label;
122123
lsmtype = LSMTYPE__SELINUX;
123124
name = "selinux";
125+
pr_err("\n");
124126
return;
125127
}
126128
#endif
127129

128130
get_label = NULL;
129131
lsmtype = LSMTYPE__NO_LSM;
130132
name = "none";
133+
pr_err("\n");
131134
}
132135

133136
Lsmtype host_lsm_type()
@@ -165,9 +168,11 @@ int validate_lsm(CredsEntry *ce)
165168
if (name == NULL)
166169
get_host_lsm();
167170

171+
pr_err("\n");
168172
if (image_lsm == LSMTYPE__NO_LSM || image_lsm == lsmtype)
169173
return 0;
170174

175+
pr_err("\n");
171176
/*
172177
* This is really only a problem if the processes have actually
173178
* specified an LSM profile. If not, we won't restore anything anyway,

0 commit comments

Comments
 (0)