Re: [PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-11-16 Thread Tony Krowiak
On 11/13/20 7:00 PM, Halil Pasic wrote: On Fri, 13 Nov 2020 16:30:31 -0500 Tony Krowiak wrote: We will be using the mutex_trylock() function in our sysfs assignment interfaces which make the call to the AP bus to check permissions (which also locks ap_perms). If the mutex_trylock() fails,

Re: [PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-11-13 Thread Halil Pasic
On Fri, 13 Nov 2020 16:30:31 -0500 Tony Krowiak wrote: > We will be using the mutex_trylock() function in our sysfs > assignment > interfaces which make the call to the AP bus to check permissions (which > also > locks ap_perms). If the mutex_trylock() fails, we return from the assignment >

Re: [PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-11-13 Thread Tony Krowiak
On 10/27/20 12:55 PM, Harald Freudenberger wrote: On 22.10.20 19:11, Tony Krowiak wrote: Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is in use. The callback will be invoked whenever a change to the AP bus's sysfs

Re: [PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-10-27 Thread Harald Freudenberger
On 22.10.20 19:11, Tony Krowiak wrote: > Introduces a new driver callback to prevent a root user from unbinding > an AP queue from its device driver if the queue is in use. The callback > will be invoked whenever a change to the AP bus's sysfs apmask or aqmask > attributes would result in one or

Re: [PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-10-27 Thread Halil Pasic
On Thu, 22 Oct 2020 13:11:59 -0400 Tony Krowiak wrote: > Introduces a new driver callback to prevent a root user from unbinding > an AP queue from its device driver if the queue is in use. The callback > will be invoked whenever a change to the AP bus's sysfs apmask or aqmask > attributes would

[PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-10-22 Thread Tony Krowiak
Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is in use. The callback will be invoked whenever a change to the AP bus's sysfs apmask or aqmask attributes would result in one or more AP queues being removed from its driver. If