Bug 1397891 - SetPrinter info level 2 marshalling fails
Summary: SetPrinter info level 2 marshalling fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: samba
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andreas Schneider
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks: 1399979
TreeView+ depends on / blocked
 
Reported: 2016-11-23 14:08 UTC by Andreas Schneider
Modified: 2017-08-01 18:19 UTC (History)
5 users (show)

Fixed In Version: samba-4.6.0-0.1.rc3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 18:19:59 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:1950 0 normal SHIPPED_LIVE Low: samba security, bug fix, and enhancement update 2017-08-01 18:09:24 UTC
Samba Project 11197 0 None None None 2016-11-23 14:08:55 UTC

Description Andreas Schneider 2016-11-23 14:08:56 UTC
Description of problem:

Chaning the security list in any printer spool in Samba 4.2.0 fails.


[2015/04/06 15:14:35.305842,  4, pid=10303, effective(9201, 513), real(9201, 0), class=rpc_srv] ../source3/rpc_server/srv_pipe.c:1263(api_rpcTNP)
  api_rpcTNP: spoolss op 0x7 - api_rpcTNP: rpc command: SPOOLSS_SETPRINTER
[2015/04/06 15:14:35.305856,  6, pid=10303, effective(9201, 513), real(9201, 0), class=rpc_srv] ../source3/rpc_server/srv_pipe.c:1303(api_rpcTNP)
  api_rpc_cmds[7].fn == 0x7fa4f333e4ac
[2015/04/06 15:14:35.305875,  1, pid=10303, effective(9201, 513), real(9201, 0)] ../librpc/ndr/ndr.c:578(ndr_pull_error)
  ndr_pull_error(7): Bad subcontext (PULL) size_is(0) mismatch content_size 131076
[2015/04/06 15:14:35.305893,  0, pid=10303, effective(9201, 513), real(9201, 0), class=rpc_srv] ../source3/rpc_server/srv_pipe.c:1308(api_rpcTNP)
  api_rpcTNP: spoolss: SPOOLSS_SETPRINTER failed.
[2015/04/06 15:14:35.305920,  4, pid=10303, effective(9201, 513), real(9201, 0)] ../source3/smbd/sec_ctx.c:421(pop_sec_ctx)
  pop_sec_ctx (9201, 513) - sec_ctx_stack_ndx = 0
[2015/04/06 15:14:35.305933,  3, pid=10303, effective(9201, 513), real(9201, 0), class=rpc_srv] ../source3/rpc_server/srv_pipe.c:1622(process_complete_pdu)
  DCE/RPC fault sent!Setting fault state


The spoolss IDL is wrong, so the marshalling fails.

Comment 3 Andreas Schneider 2017-06-06 07:45:45 UTC
This is covered by the upstream test suite. SanityOnly ...

Comment 5 errata-xmlrpc 2017-08-01 18:19:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1950


Note You need to log in before you can comment on or make changes to this bug.