Al Viro
4804692cb1
UPSTREAM: ecryptfs: fix handling of directory opening
...
(cherry picked from commit 6a480a7842 )
First of all, trying to open them r/w is idiocy; it's guaranteed to fail.
Moreover, assigning ->f_pos and assuming that everything will work is
blatantly broken - try that with e.g. tmpfs as underlying layer and watch
the fireworks. There may be a non-trivial amount of state associated with
current IO position, well beyond the numeric offset. Using the single
struct file associated with underlying inode is really not a good idea;
we ought to open one for each ecryptfs directory struct file.
Additionally, file_operations both for directories and non-directories are
full of pointless methods; non-directories should *not* have ->iterate(),
directories should not have ->flush(), ->fasync() and ->splice_read().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Change-Id: I4813ce803f270fdd364758ce1dc108b76eab226e
Signed-off-by: Amit Pundir <amit.pundir@linaro.org >
2016-08-12 13:44:30 -07:00
..
2015-12-08 14:51:16 -05:00
2015-06-30 19:44:57 -07:00
2015-09-10 13:29:01 -07:00
2015-06-23 18:02:01 -04:00
2015-07-04 19:36:06 -07:00
2015-12-18 15:35:08 -08:00
2015-11-16 20:38:43 -05:00
2015-11-13 09:24:40 -08:00
2015-12-13 14:30:59 -08:00
2015-09-10 13:29:01 -07:00
2015-11-20 16:17:32 -08:00
2015-11-11 02:04:44 -05:00
2015-06-30 19:44:58 -07:00
2015-12-01 15:45:05 -05:00
2016-08-12 13:44:30 -07:00
2015-06-25 17:00:42 -07:00
2015-12-12 10:15:34 -08:00
2015-11-16 09:43:54 -08:00
2016-02-16 13:54:19 -08:00
2015-11-13 18:02:30 -08:00
2015-11-20 16:17:32 -08:00
2015-08-07 13:59:24 +02:00
2015-11-11 02:11:02 -05:00
2016-04-25 19:16:11 -07:00
2015-11-13 18:02:30 -08:00
2015-09-10 13:29:01 -07:00
2015-11-13 20:34:32 -05:00
2015-09-04 16:54:41 -07:00
2015-11-09 15:11:24 -08:00
2015-11-20 16:17:32 -08:00
2015-12-07 10:25:00 -08:00
2015-11-13 20:34:32 -05:00
2015-11-09 15:11:24 -08:00
2015-08-18 15:49:15 -07:00
2015-11-11 20:11:28 -08:00
2015-11-06 17:50:42 -08:00
2015-07-04 19:36:06 -07:00
2015-11-20 16:17:32 -08:00
2015-12-13 14:30:59 -08:00
2015-08-13 10:22:06 -04:00
2015-12-16 11:49:58 -05:00
2015-11-11 09:45:24 -08:00
2016-04-25 19:15:48 -07:00
2015-11-06 17:50:42 -08:00
2015-12-29 17:45:49 -08:00
2015-05-28 18:25:19 -07:00
2015-12-06 12:31:07 -05:00
2016-08-11 15:20:37 -07:00
2016-03-14 13:34:44 -07:00
2015-06-23 18:02:00 -04:00
2015-09-05 20:34:28 -07:00
2015-10-16 11:42:28 -07:00
2015-11-13 18:02:30 -08:00
2016-07-11 19:32:16 +00:00
2015-11-13 20:34:33 -05:00
2015-11-13 21:53:18 -08:00
2015-11-23 21:11:08 -05:00
2015-11-04 22:13:45 -05:00
2015-11-13 18:02:30 -08:00
2015-08-20 14:58:35 +02:00
2015-09-09 10:43:12 -07:00
2015-11-13 18:02:30 -08:00
2015-09-04 16:54:41 -07:00
2015-11-10 12:07:22 -08:00
2016-03-16 16:50:34 -07:00
2015-12-04 11:02:17 -07:00
2015-11-11 02:19:33 -05:00
2015-08-05 13:49:35 -07:00
2015-10-23 23:26:43 +02:00
2015-11-06 17:50:42 -08:00
2015-11-16 23:54:45 -08:00
2016-03-24 10:32:35 -07:00
2015-12-08 15:02:42 -05:00
2015-08-17 18:39:46 -04:00
2016-07-01 18:12:06 -07:00
2015-07-10 10:39:25 -05:00
2015-06-02 10:29:07 -07:00
2015-08-07 04:39:40 +03:00
2015-11-05 23:05:32 -08:00
2016-02-16 13:51:11 -08:00
2015-11-11 02:18:27 -05:00
2015-08-17 23:38:10 -04:00
2016-03-22 20:27:13 -07:00
2015-08-12 15:28:45 -05:00
2015-10-22 14:57:42 -04:00
2016-03-22 20:27:13 -07:00
2015-06-30 19:44:56 -07:00
2015-11-06 17:50:42 -08:00
2015-12-06 12:33:02 -05:00
2015-09-01 16:13:25 -07:00
2015-09-11 15:21:34 -07:00
2015-07-10 10:39:25 -05:00
2015-11-11 02:18:26 -05:00
2015-07-22 20:33:27 -05:00
2015-11-13 20:34:32 -05:00
2015-06-30 19:44:56 -07:00
2016-07-01 18:12:06 -07:00
2015-11-06 17:50:42 -08:00
2015-08-07 04:39:40 +03:00
2015-11-23 21:15:30 -05:00
2015-11-09 15:11:24 -08:00
2016-02-16 13:54:20 -08:00
2015-11-06 17:50:42 -08:00
2016-02-16 13:54:16 -08:00
2015-11-13 20:34:33 -05:00