If it is unable to do so, then that means it is not running as root or is untrusted (i.e. not approved of by SELinux or some other security mechanism). If that is the case, you don't want a "warning" - you want to guarantee that it cannot lock the machine. You only want trusted code to even have the possibility of locking up the machine and trusted code would then always have the ability to lock itself into memory, since you trust it.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds