Re: [PATCH v5 2/4] powerpc: expose secure variables to userspace via sysfs

2019-10-25 Thread Lakshmi Ramasubramanian
On 10/24/19 5:47 PM, Nayna Jain wrote: +static ssize_t size_show(struct kobject *kobj, struct kobj_attribute *attr, +char *buf) +{ + uint64_t dsize; + int rc; + + rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, NULL, ); + if (rc) { +

[PATCH v5 2/4] powerpc: expose secure variables to userspace via sysfs

2019-10-24 Thread Nayna Jain
PowerNV secure variables, which store the keys used for OS kernel verification, are managed by the firmware. These secure variables need to be accessed by the userspace for addition/deletion of the certificates. This patch adds the sysfs interface to expose secure variables for PowerNV