Displaying 20 results from an estimated 99 matches for "to_us".
Did you mean:
to_s
2012 Aug 29
1
ACL MySQL dict: to_user==from_user entries
...an see, user at domain sets the ACL of his INBOX to the same
value it was set before (reading it from the server after this
idempotent write changed the order but none of the flags).
But after "SETACL INBOX user at domain lrwstipekxacd" I see a new entry
in my imap_acl_shares table where to_user and from_user both contain
the value "user at domain".
As far as I can see, this entry does not make much sense in the
database, because every user should be able so see its own folders.
But adding this line may blow up the database especially according to
the full table scan problem...
2013 Jan 24
0
Again ACL Postgres dict trouble, no update and raw backtrace
...p Dovecot says:
2013-01-23 16:33:20 master: Info: Dovecot v2.1.13 (6eabf0c738d7) starting up
but I do not get no core dumps.
The last SQL statement executed by Posgres is (log level debug5):
2013-01-24 11:09:59 CET DEBUG: StartTransactionCommand
2013-01-24 11:09:59 CET STATEMENT: SELECT dummy,to_user,from_user FROM user_shares
2013-01-24 11:09:59 CET DEBUG: StartTransaction
2013-01-24 11:09:59 CET STATEMENT: SELECT dummy,to_user,from_user FROM user_shares
2013-01-24 11:09:59 CET DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
20...
2009 Apr 07
2
Is there any more detailed docs about dict configuration
Hi,
I am looking for some help on dict configration. I'm trying to config
shared and public mailbox, and use sql as acl backend.
Here is my config:
table:
CREATE TABLE `shared_dict` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`from_user` char(50) NOT NULL,
`to_user` char(50) NOT NULL,
`status` int(10) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `from_user` (`from_user`),
KEY `to_user` (`to_user`)
)
dovecot-dict-sql.conf
map {
pattern = shared/shared-boxes/user/$from/$to
table = shared_dict
value_field = status
fields {...
2012 Jul 16
0
ACL with MySQL dict => full table scans
Hi!
I'm just installing ACL support on 2.1.6.
When a user changes these ACLs, this results in a full table scan on
the dictionary, that tells dovecot who shares with whom.
Here's what queries I see when I run
$ doveadm acl delete -u user1 shared/user2/folder user=user1
1: SELECT dummy,to_user,from_user FROM imap_acl_shares
2: SELECT dummy,from_user FROM imap_acl_anyone
3: BEGIN
4: DELETE FROM imap_acl_shares WHERE to_user = 'user1' AND from_user = 'user1'
5: INSERT INTO imap_acl_shares (dummy,to_user,from_user) VALUES ('1','user1','user1') ON DU...
2015 Jul 24
0
possible patch for ACL SQL ERROR: duplicate key value violates unique constraint "user_shares_pkey"
...error, when
someone changed ACLs, actually for some reason some users, who get
permission from other users, get this error quite often:
dict: Error: sql dict: commit failed:
ERROR: duplicate key value violates unique constraint "user_shares_pkey"
(query: INSERT INTO user_shares (dummy,to_user,from_user) VALUES ('1','user1','user2'))
It looks like that this error is triggered, when a MUA is connecting to
Dovecot after ACLs had been changed and opens several mailboxes at once.
So two or parallel Dovecot instances try to insert the record
simultaneously.
With...
2014 Dec 01
1
[PATCH] virtio_console: fix sparse warnings
...5: warning: incorrect type in
argument 2 (different address spaces)
drivers/char/virtio_console.c:790:35: expected char *out_buf
drivers/char/virtio_console.c:790:35: got char [noderef]
<asn:1>*ubuf
fill_readbuf is reused with both kernel and userspace pointers,
depending on value of to_user flag.
Tag address parameter as __user, and cast to/from regular pointer type
when we know it's safe.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/char/virtio_console.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/char/virti...
2014 Dec 01
1
[PATCH] virtio_console: fix sparse warnings
...5: warning: incorrect type in
argument 2 (different address spaces)
drivers/char/virtio_console.c:790:35: expected char *out_buf
drivers/char/virtio_console.c:790:35: got char [noderef]
<asn:1>*ubuf
fill_readbuf is reused with both kernel and userspace pointers,
depending on value of to_user flag.
Tag address parameter as __user, and cast to/from regular pointer type
when we know it's safe.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/char/virtio_console.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/char/virti...
2009 Jun 25
2
Dovecot v1.2rc6 dict-server socket path problem & pgsql crash
...009-06-25 14:27:03 dovecot: Error: child 29802 (dict) killed with signal
11 (core dumps disabled)
My sql-dict.conf is:
connect = host=localhost dbname=dovecot user=dovecot # password=pass
[CUT samples for quota & expire]
# CREATE TABLE user_shares (
# from_user varchar(100) not null,
# to_user varchar(100) not null,
# primary key (from_user, to_user)
# );
map {
pattern = shared/shared-boxes/user/$to/$from
table = user_shares
fields {
from_user = $from
to_user = $to
}
}
==================
So I changed the connect line into:
connect = dbname=dovecot user=dove...
2010 Jun 10
1
Shared Mailbox Questions
...acl: sqlite:/etc/dovecot/acl-shared-dict.conf
acl-shared-dict.conf looks like this:
connect = /home/staff/dovecot/acl-shared-ns.sqlite
map {
table = acl_shared_ns
pattern = shared/shared-boxes/user/$to/$from
value_field = has_visible_folders
fields {
from_user = $from
to_user = $to
}
}
/home/staff/dovecot/acl-shared-ns.sqlite is set 0666, and I can add records to it from the sqlite command line as a normal user. The table was created with:
CREATE TABLE acl_shared_ns (from_user, to_user, has_visible_folders, PRIMARY KEY (from_user) ON CONFLICT REPLACE);
When...
2008 Aug 26
4
Samba write performance in kernel
...copy is even slower. The reading performance is over 7 MB/s, with mmap and sendfile enabled, while writing is only 4-5 MB/s. Without mmap and sendfile, reading from samba is also about 4-5 MB/s. I use Oprofile to profile writing file to samba and found that CPU takes over 30% CPU time on copy_from/to_user, so I think going to user space and back again is the bottleneck.
Since there is sendfile, why is'nt there counterpart on write path? Is there some difficalties or what? Is it implementable?
Please give me some advice.
Best Regards,
Mac Lin
_______________________________________________...
2020 Jun 05
2
[PATCH RFC 03/13] vhost: batching fetches
...03:27:39PM +0800, Jason Wang wrote:
>> On 2020/6/2 ??9:06, Michael S. Tsirkin wrote:
>>> With this patch applied, new and old code perform identically.
>>>
>>> Lots of extra optimizations are now possible, e.g.
>>> we can fetch multiple heads with copy_from/to_user now.
>>> We can get rid of maintaining the log array. Etc etc.
>>>
>>> Signed-off-by: Michael S. Tsirkin<mst at redhat.com>
>>> Signed-off-by: Eugenio P?rez<eperezma at redhat.com>
>>> Link:https://lore.kernel.org/r/20200401183118.8334-4-e...
2020 Jun 05
2
[PATCH RFC 03/13] vhost: batching fetches
...03:27:39PM +0800, Jason Wang wrote:
>> On 2020/6/2 ??9:06, Michael S. Tsirkin wrote:
>>> With this patch applied, new and old code perform identically.
>>>
>>> Lots of extra optimizations are now possible, e.g.
>>> we can fetch multiple heads with copy_from/to_user now.
>>> We can get rid of maintaining the log array. Etc etc.
>>>
>>> Signed-off-by: Michael S. Tsirkin<mst at redhat.com>
>>> Signed-off-by: Eugenio P?rez<eperezma at redhat.com>
>>> Link:https://lore.kernel.org/r/20200401183118.8334-4-e...
2014 Jun 03
3
R: Info about sharing mail folder
HI Steffen.
In folder /var/vmail/example.com/user_a i've a dovecot-acl file with "
user=test at example.com lrwstipekxa "
IN mysql table user_shares i set:
+---------------------+------------------+-------+
| from_user | to_user | dummy |
+---------------------+------------------+-------+
| user_a at example.com | test at example.com | 1 |
+---------------------+------------------+-------+
and the doveadm acl command:
doveadm acl get -u user_a at example.com INBOX
ID
Global Rights
user=test at example.co...
2010 Sep 06
2
need help with shared mailboxes
...user2 at domain.tld rl
- in the dovecot-share-sql.conf I have :
connect = host=/var/lib/mysql/mysql.sock dbname=xxxx user=xxx
password=postfixpass
map {
pattern = shared/shared-boxes/user/$to/$from
table = user_shares
value_field = dummy
fields {
from_user = $from
to_user = $to
}
}
and in the user_share table :
+-------------------+------------------+-------+
| from_user | to_user | dummy |
+-------------------+------------------+-------+
| user1 at myhost.ro | user2 at domain.tld | 1 |
| user1 | user2 | 1 |...
2009 Aug 07
2
Listing shared mailboxes with a domainpart
...the
wiki:
plugin {
acl_shared_dict = proxy::acl
}
dict {
acl = mysql:/etc/dovecot/dovecot-dict-sql.conf
}
where /etc/dovecot/dovecot-dict-sql.conf holds
map {
pattern = shared/shared-boxes/user/$to/$from
table = virtual_user_shares
value_field = dummy
fields {
from_user = $from
to_user = $to
}
}
The database table consists of
+-------------+------------+-------+
| from_user | to_user | dummy |
+-------------+------------+-------+
| info at domain | user1 | 1 |
+-------------+------------+-------+
But when I login as user1 I can neither see nor subscribe to the...
2020 Feb 06
2
vhost changes (batched) in linux-next after 12/13 trigger random crashes in KVM guests after reboot
On Thu, Feb 06, 2020 at 04:12:21PM +0100, Christian Borntraeger wrote:
>
>
> On 06.02.20 15:22, eperezma at redhat.com wrote:
> > Hi Christian.
> >
> > Could you try this patch on top of ("38ced0208491 vhost: use batched version by default")?
> >
> > It will not solve your first random crash but it should help with the lost of network
2020 Feb 06
2
vhost changes (batched) in linux-next after 12/13 trigger random crashes in KVM guests after reboot
On Thu, Feb 06, 2020 at 04:12:21PM +0100, Christian Borntraeger wrote:
>
>
> On 06.02.20 15:22, eperezma at redhat.com wrote:
> > Hi Christian.
> >
> > Could you try this patch on top of ("38ced0208491 vhost: use batched version by default")?
> >
> > It will not solve your first random crash but it should help with the lost of network
2020 Feb 07
1
vhost changes (batched) in linux-next after 12/13 trigger random crashes in KVM guests after reboot
...>>
> >> vhost: batching fetches
> >>
> >> With this patch applied, new and old code perform identically.
> >>
> >> Lots of extra optimizations are now possible, e.g.
> >> we can fetch multiple heads with copy_from/to_user now.
> >> We can get rid of maintaining the log array. Etc etc.
> >>
> >> Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
> >>
> >> drivers/vhost/test.c | 2 +-
> >> drivers/vhost/vhost.c | 39 +++++++++++++++++++++...
2006 Jul 23
4
has_many AND has_many :through ?
Hi,
I am working on a scheduling app and I have a perpelextion (new word).
I am wondering if the problem is my data model
I have Users.
Users can create Events.
Users can be invited to Events created by other Users.
So...
user.rb
class User < ActiveRecord::Base
has_many :invitations # invitations to other users'' events
has_many :events, :through => :invitations # all events
2009 Aug 13
0
[PATCHv3 1/2] mm: export use_mm/unuse_mm to modules
...e dprintk printk
@@ -595,51 +595,6 @@ static struct kioctx *lookup_ioctx(unsigned long ctx_id)
}
/*
- * use_mm
- * Makes the calling kernel thread take on the specified
- * mm context.
- * Called by the retry thread execute retries within the
- * iocb issuer's mm context, so that copy_from/to_user
- * operations work seamlessly for aio.
- * (Note: this routine is intended to be called only
- * from a kernel thread context)
- */
-static void use_mm(struct mm_struct *mm)
-{
- struct mm_struct *active_mm;
- struct task_struct *tsk = current;
-
- task_lock(tsk);
- active_mm = tsk->active_mm...