user_defined.c (72ed73c3f0801e860ee27e53ab6aaf47941ba324) | user_defined.c (78b7280cce23293f7570ad52c1ffe1485c6d9669) |
---|---|
1/* user_defined.c: user defined key type 2 * 3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 155 unchanged lines hidden (view full) --- 164EXPORT_SYMBOL_GPL(user_destroy); 165 166/* 167 * describe the user key 168 */ 169void user_describe(const struct key *key, struct seq_file *m) 170{ 171 seq_puts(m, key->description); | 1/* user_defined.c: user defined key type 2 * 3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 155 unchanged lines hidden (view full) --- 164EXPORT_SYMBOL_GPL(user_destroy); 165 166/* 167 * describe the user key 168 */ 169void user_describe(const struct key *key, struct seq_file *m) 170{ 171 seq_puts(m, key->description); |
172 173 seq_printf(m, ": %u", key->datalen); | 172 if (key_is_instantiated(key)) 173 seq_printf(m, ": %u", key->datalen); |
174} 175 176EXPORT_SYMBOL_GPL(user_describe); 177 178/* 179 * read the key data 180 * - the key's semaphore is read-locked 181 */ --- 21 unchanged lines hidden --- | 174} 175 176EXPORT_SYMBOL_GPL(user_describe); 177 178/* 179 * read the key data 180 * - the key's semaphore is read-locked 181 */ --- 21 unchanged lines hidden --- |